DataGridViewRow.DataGridViewRowAccessibleObject.Navigate Method (AccessibleNavigation)

 

Navigates to another accessible object.

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

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

Parameters

navigationDirection
Type: System.Windows.Forms.AccessibleNavigation

One of the AccessibleNavigation values.

Return Value

Type: System.Windows.Forms.AccessibleObject

An AccessibleObject that represents an object in the specified direction.

Exception Condition
InvalidOperationException

The value of the Owner property is null.

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

Parameter value

Return value

Down or Next

An accessible object for the DataGridViewRow below the current row.

Up or Previous

An accessible object for the DataGridViewRow above the current row.

FirstChild

An accessible object for the first DataGridViewCell in the row. The DataGridViewRowHeaderCell is the first cell if RowHeadersVisible is true.

LastChild

An accessible object for the last DataGridViewCell in the row.

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: