DataGridViewCheckBoxCell.ValueType Property

Definition

Gets the data type of the values in the cell.

public:
 virtual property Type ^ ValueType { Type ^ get(); void set(Type ^ value); };
public override Type ValueType { get; set; }
public override Type? ValueType { get; set; }
member this.ValueType : Type with get, set
Public Overrides Property ValueType As Type

Property Value

The Type of the underlying value of the cell.

Remarks

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.

Applies to

See also