DataGridViewCheckBoxCell::DataGridViewCheckBoxCellAccessibleObject::DoDefaultAction Method ()

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

public:
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)]
virtual void DoDefaultAction() override

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
Return to top
Show: