Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

GridField class

Represents a field of data in the grid.

System.Object
  Microsoft.SharePoint.JSGrid.GridField

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);   
                else
                    field.SerializeDataValue = true;
                r.Add(field);
            }

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