DataGridViewCheckBoxCell Constructors

Definition

Initializes a new instance of the DataGridViewCheckBoxCell class.

Overloads

DataGridViewCheckBoxCell()

Initializes a new instance of the DataGridViewCheckBoxCell class to its default state.

DataGridViewCheckBoxCell(Boolean)

Initializes a new instance of the DataGridViewCheckBoxCell class, enabling binary or ternary state.

DataGridViewCheckBoxCell()

Initializes a new instance of the DataGridViewCheckBoxCell class to its default state.

public:
 DataGridViewCheckBoxCell();
public DataGridViewCheckBoxCell ();
Public Sub New ()

Remarks

This constructor initializes the ThreeState property value to false.

See also

Applies to

DataGridViewCheckBoxCell(Boolean)

Initializes a new instance of the DataGridViewCheckBoxCell class, enabling binary or ternary state.

public:
 DataGridViewCheckBoxCell(bool threeState);
public DataGridViewCheckBoxCell (bool threeState);
new System.Windows.Forms.DataGridViewCheckBoxCell : bool -> System.Windows.Forms.DataGridViewCheckBoxCell
Public Sub New (threeState As Boolean)

Parameters

threeState
Boolean

true to enable ternary state; false to enable binary state.

Remarks

The standard operation of a check box allows for two states: checked and unchecked. When the threeState parameter is set to true, an additional, indeterminate state is allowed, which is visually denoted by a grey partial check.

See also

Applies to