DataGridBoolColumn Constructor ()

 

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.

void AddDataGridBoolColumnStyle()
{
   DataGridBoolColumn^ myColumn = gcnew DataGridBoolColumn;
   myColumn->MappingName = "Current";
   myColumn->Width = 200;
   dataGrid1->TableStyles[ "Customers" ]->GridColumnStyles->Add( myColumn );
}

.NET Framework
Available since 1.1
Return to top
Show: