DataGridViewRow.DataGridViewRowAccessibleObject.GetFocused Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the accessible object that has keyboard focus.

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

public override AccessibleObject GetFocused()

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: