Class GridCheckBoxSelectorColumn
Represents the column which is used to select/deselect rows based on the checkbox value which is not bound with data object.
Inheritance
System.Object
GridCheckBoxSelectorColumn
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridCheckBoxSelectorColumn : GridCheckBoxColumn, IDisposable, IFilterDefinition
Examples
The following example shows how to create the check box selector column.
GridCheckBoxSelectorColumn selectorColumn = new GridCheckBoxSelectorColumn();
selectorColumn.MappingName = "SelectorColumn";
selectorColumn.AllowCheckBoxOnHeader = true;
selectorColumn.CheckBoxSize = new Size(25,25);
sfDataGrid1.Columns.Add(selectorColumn);
Constructors
GridCheckBoxSelectorColumn()
Initializes a new instance of the GridCheckBoxSelectorColumn class.
Declaration
public GridCheckBoxSelectorColumn()
Properties
AllowCheckBoxOnHeader
Gets or sets a value indicating whether the check box in header can be enabled.
Declaration
[Cloneable(true)]
public override bool AllowCheckBoxOnHeader { get; set; }
Property Value
Type |
---|
System.Boolean |
Overrides
Remarks
You can get all the selected rows using SelectedItems property.
Examples
The following example shows how to enable check box in header.
GridCheckBoxSelectorColumn column1 = new GridCheckBoxSelectorColumn();
column1.MappingName = "SelectorColumn";
column1.AllowCheckBoxOnHeader = true;
sfDataGrid1.Columns.Add(column1);
Implements
System.IDisposable