DataGridView.DataGridViewAccessibleObject.GetSelected Method ()


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

Returns an AccessibleObject that represents the selected cells in the DataGridView control.

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

public override AccessibleObject GetSelected()

Return Value

Type: System.Windows.Forms.AccessibleObject

An AccessibleObject that represents the currently selected cells, or null if no cells are selected or if the object itself does not have focus.

.NET Framework
Available since 2.0
Return to top