DataGridView::DataGridViewTopRowAccessibleObject::Navigate Method (AccessibleNavigation)

 

Navigates to another accessible object.

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

public:
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)]
virtual AccessibleObject^ Navigate(
	AccessibleNavigation navigationDirection
) override

Parameters

navigationDirection
Type: System.Windows.Forms::AccessibleNavigation

One of the AccessibleNavigation values.

Return Value

Type: System.Windows.Forms::AccessibleObject^

An AccessibleObject that represents the object at the specified AccessibleNavigation value.

Exception Condition
InvalidOperationException

The Owner property is not set.

The following table describes the AccessibleObject that the Navigate method will return for each parameter value.

Parameter value

Return value

Next or

Down

An accessible object that represents the first DataGridViewRow that is a data row in the DataGridView.

FirstChild

An accessible object that represents the first column header in the DataGridView. If the RowHeadersVisible property is set to true, the accessible object represents the DataGridViewTopLeftHeaderCell.

LastChild

An accessible object that represents the column header for the last visible column.

All other AccessibleNavigation values

null.

SecurityPermission

to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode

.NET Framework
Available since 2.0
Return to top
Show: