Syncfusion.SfDataGrid.XForms
Members 
Syncfusion.SfDataGrid.XForms Namespace : GridSwitchColumn Class

GridSwitchColumn Class

Represents a SfDataGrid column that hosts SfSwitchControl view in its cells.
Syntax
public class GridSwitchColumn : GridColumn 
Remarks

Use GridSwitchColumn to display columns of Boolean data as a SfSwitchControl. To create a column, add it to the SfDataGrid.Columns collection and to populate the data to the column set the GridColumn.MappingName to the property in the data source. dataGrid.Columns.Add(new GridSwitchColumn() { MappingName = "IsClosed" });

The data can also be populated to the column by using the DisplayBinding property. The Binding property is applied to the SfSwitchControl view created in the column. The Xamarin.Forms.BindableObject.BindingContext for the view in each cell is the data item for the row the cell is present. Therefore, to set up the binding you only have to set the Xamarin.Forms.Binding.Path. Optionally, you can specify a Xamarin.Forms.Binding.Converter if you want to convert the data.

Inheritance Hierarchy

System.Object
   Xamarin.Forms.BindableObject
      Syncfusion.SfDataGrid.XForms.GridColumn
         Syncfusion.SfDataGrid.XForms.GridSwitchColumn

AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.1451.0.47

See Also