menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridSwitchColumn - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridSwitchColumn

    Represents a SfDataGrid column that hosts SfSwitchControl view in its cells.

    Inheritance
    System.Object
    GridColumn
    GridSwitchColumn
    Implements
    System.IDisposable
    Inherited Members
    GridColumn.ActualWidth
    GridColumn.ActualWidthProperty
    GridColumn.AllowEditing
    GridColumn.AllowEditingProperty
    GridColumn.AllowFocus
    GridColumn.AllowFocusProperty
    GridColumn.AllowSorting
    GridColumn.AllowSortingProperty
    GridColumn.CanEditCell()
    GridColumn.CellStyle
    GridColumn.CellStyleProperty
    GridColumn.CellTextSize
    GridColumn.CellTextSizeProperty
    GridColumn.CellType
    GridColumn.ColumnSizer
    GridColumn.ColumnSizerProperty
    GridColumn.CultureInfo
    GridColumn.CultureInfoProperty
    GridColumn.DisplayBinding
    GridColumn.Dispose()
    GridColumn.Dispose(Boolean)
    GridColumn.FontAttribute
    GridColumn.FontAttributeProperty
    GridColumn.Format
    GridColumn.FormatProperty
    GridColumn.GetFormattedValue(Object)
    GridColumn.GroupMode
    GridColumn.GroupModeProperty
    GridColumn.HeaderCellTextSize
    GridColumn.HeaderCellTextSizeProperty
    GridColumn.HeaderFont
    GridColumn.HeaderFontAttribute
    GridColumn.HeaderFontAttributeProperty
    GridColumn.HeaderFontProperty
    GridColumn.HeaderTemplate
    GridColumn.HeaderTemplateProperty
    GridColumn.HeaderText
    GridColumn.HeaderTextAlignment
    GridColumn.HeaderTextAlignmentProperty
    GridColumn.HeaderTextProperty
    GridColumn.IsHidden
    GridColumn.IsHiddenProperty
    GridColumn.LineBreakMode
    GridColumn.LineBreakModeProperty
    GridColumn.LoadUIView
    GridColumn.MappingName
    GridColumn.MappingNameProperty
    GridColumn.MaximumWidth
    GridColumn.MaximumWidthProperty
    GridColumn.MinimumWidth
    GridColumn.MinimumWidthProperty
    GridColumn.Padding
    GridColumn.PaddingProperty
    GridColumn.RecordFont
    GridColumn.RecordFontProperty
    GridColumn.SetDisplayBindingConverter()
    GridColumn.SortMode
    GridColumn.SortModeProperty
    GridColumn.TextAlignment
    GridColumn.TextAlignmentProperty
    GridColumn.ValueBinding
    GridColumn.Width
    GridColumn.WidthProperty
    Namespace: Syncfusion.SfDataGrid.XForms
    Assembly: Syncfusion.SfDataGrid.XForms.dll
    Syntax
    public class GridSwitchColumn : GridColumn, IDisposable
    Remarks

    Use GridSwitchColumn to display columns of Boolean data as a SfSwitchControl. To create a column, add it to the Columns collection and to populate the data to the column set the 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.

    Constructors

    GridSwitchColumn()

    Initializes a new instance of the GridSwitchColumn class.

    Declaration
    public GridSwitchColumn()

    Implements

    System.IDisposable

    See Also

    https://help.syncfusion.com/xamarin/sfdatagrid/column-types#gridswitchcolumn
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved