Class Columns
A collection of GridColumn, that represent the columns in a SfDataGrid control. This class cannot be inherited.
Inheritance
System.Object
Columns
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.iOS.dll
Syntax
public class Columns : ObservableCollection<GridColumn>
Remarks
Use the Columns collection to programmatically manage a collection of GridColumn in a SfDataGrid control. You can add, remove or insert columns in the Columns collection.
Constructors
Columns()
Initializes a new instance of the Columns class.
Declaration
public Columns()
Properties
Item[String]
Gets a GridColumn-derived column object with the specified MappingName from the Columns collection.
Declaration
public GridColumn this[string mappingName] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | mappingName | The mapping name of the column whose column object to be retrieved. |
Property Value
Type | Description |
---|---|
GridColumn | A GridColumn object in the Columns collection, associated with the given mapping name. |
Remarks
Use this Indexer to get a GridColumn-derived column object with the specified MappingName from the Columns collection using array notation.