DataGridBoolColumn Constructor ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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;
   dataGrid1.TableStyles["Customers"].GridColumnStyles.Add(myColumn);
} 

.NET Framework
Available since 1.1
Return to top
Show: