DataGridBoolColumn Constructor ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the DataGridBoolColumn class.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public DataGridBoolColumn()

When using this overload to create a DataGridBoolColumn, be sure to set the MappingName value to the ColumnName of a DataColumn.

The following code example first creates a new DataGridBoolColumn and adds it to the GridColumnStylesCollection of a DataGridTableStyle.

private void AddDataGridBoolColumnStyle(){
   DataGridBoolColumn myColumn = new DataGridBoolColumn();
   myColumn.MappingName = "Current";
   myColumn.Width = 200;

.NET Framework
Available since 1.1
Return to top