DataGridViewRow::DataGridViewRowAccessibleObject::GetFocused Method ()

 

Returns the accessible object that has keyboard focus.

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

public:
virtual AccessibleObject^ GetFocused() override

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