SelectRow Method (ITable)
Clicks the specified row header in this grid.

C# Syntax

void SelectRow( 
   int row
)

Parameters

row
0-based row number.
Example
// This example selects a row in the data grid.

private void SelectFlight()
{
    // Identify the flights data grid (ITable).
    var flightsDataGrid = _flightGUIAapplicationWindow.Describe<ITable>(new TableDescription
    {
        ObjectName = @"flightsDataGrid"
    });

    // Select the third row in the data grid.
    flightsDataGrid.SelectRow(2); 

    var selectFlightButton = _flightGUIAapplicationWindow.Describe<IButton>(new ButtonDescription
    {
        Text = @"SELECT FLIGHT",
        ObjectName = @"selectFlightBtn"
    });

    // Click the "Select Flight" button.
    selectFlightButton.Click(); 
}