DataGrid.NavigateTo(Int32, String) Method

Definition

Navigates to the table specified by row and relation name.

C#
public void NavigateTo(int rowNumber, string relationName);

Parameters

rowNumber
Int32

The number of the row to navigate to.

relationName
String

The name of the child relation to navigate to.

Examples

The following code example navigates to the specified row number, in the table specified by child relationship name.

C#
private void NavToGrid(System.Windows.Forms.DataGrid dataGrid)
{
    // Presumes a relationship named OrderDetails exists.
    dataGrid.NavigateTo(2, "OrderDetails");
}

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 10

See also