Export (0) Print
Expand All

DataGridViewCheckBoxCell.ValueType Property

Gets the data type of the values in the cell.

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

public override Type ValueType { get; set; }

Property Value

Type: System.Type
The Type of the underlying value of the cell.

If the ValueType property of the cell has not been set, then the ValueType property for the owning DataGridViewCheckBoxColumn is used, if the column exists.

If no owning column exists, then this property is set to the default type appropriate for its mode: Boolean for binary mode and CheckState for ternary mode.

The Value is the actual data object contained in the cell, whereas the FormattedValue property is the formatted representation of this object. The ValueType and FormattedValueType properties correspond to the data types of these values, respectively.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft