DataGridViewRow::DataGridViewRowAccessibleObject::GetFocused Method ()
.NET Framework (current version)
Returns the accessible object that has keyboard focus.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Return Value
Type: System.Windows.Forms::AccessibleObject^A DataGridViewCell::DataGridViewCellAccessibleObject if the cell indicated by the DataGridView::CurrentCell property has keyboard focus and is in the current DataGridViewRow; otherwise, null.
| Exception | Condition |
|---|---|
| InvalidOperationException | The value of the Owner property is null. |
.NET Framework
Available since 2.0
Available since 2.0
Show: