DataGridViewCheckBoxCell::DataGridViewCheckBoxCellAccessibleObject::DoDefaultAction Method ()
.NET Framework (current version)
Performs the default action of the DataGridViewCheckBoxCell::DataGridViewCheckBoxCellAccessibleObject.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The DataGridViewCheckBoxCell returned by the Owner property does not belong to a DataGridView control. -or- The DataGridViewCheckBoxCell returned by the Owner property belongs to a shared row. |
The DoDefaultAction method selects the check box if it is not selected, and clears the check box if it is selected.
SecurityPermission
to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode
.NET Framework
Available since 2.0
Available since 2.0
Show: