Class Columns
A collection of GridColumn, that represent the columns in a SfDataGrid control. This class cannot be inherited.
Inheritance
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public sealed 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.
Methods
Resume()
Resumes the UI refresh when the columns are being added or removed.
Declaration
public void Resume()
Remarks
Update columns by calling Syncfusion.SfDataGrid.XForms.SfDataGridHelpers.RefreshColumns(Syncfusion.SfDataGrid.XForms.SfDataGrid) method when the column updates are resumed.
Suspend()
Suspends the UI refresh when the columns are being added or removed.
Declaration
public void Suspend()