DataGridBoolColumn::FalseValue Property
.NET Framework (current version)
Gets or sets the actual value used when setting the value of the column to false.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following code example sets the TrueValue, FalseValue, and NullValue properties of a DataGridBoolColumn.
private: void SetBoolColumnValues() { DataGridBoolColumn^ myGridColumn; // Get the DataGridBoolColumn you are setting. myGridColumn = dynamic_cast<DataGridBoolColumn^>(myDataGrid->TableStyles[ "Customers" ]->GridColumnStyles[ "Current" ]); // Set TrueValue, FalseValue, and NullValue. myGridColumn->TrueValue = true; myGridColumn->FalseValue = false; myGridColumn->NullValue = Convert::DBNull; }
.NET Framework
Available since 1.1
Available since 1.1
Show: