DataGridViewButtonCell::DataGridViewButtonCellAccessibleObject::DoDefaultAction Method ()
.NET Framework (current version)
Performs the default action of the DataGridViewButtonCell::DataGridViewButtonCellAccessibleObject
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The DataGridViewButtonCell returned by the Owner property does not belong to a DataGridView control. -or- The DataGridViewButtonCell returned by the Owner property belongs to a shared row. |
The DoDefaultAction method causes the button in the DataGridViewButtonCell to be clicked.
.NET Framework
Available since 2.0
Available since 2.0
Show: