GridField class

Represents a field of data in the grid.


Namespace:  Microsoft.SharePoint.JSGrid
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public class GridField : IJsonSerializable

This object contains the information and functionality that is required to configure a field of data in the grid. A GridField refers to the configuration of the data portion of a field. For example, whether the data can be edited. This is in contrast to a GridColumn, which controls the visual representation of the field, for example, the width of the column.

foreach (DataColumn iterator in table.Columns)
                GridField field = new GridField();
                field.FieldKey = iterator.ColumnName;
                //Fill In required fields for grid Proptypes
                if (iterator.ColumnName != "Key")
                    field = formatGridField(field, iterator);   
                    field.SerializeDataValue = true;

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.