Share this page

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();
    }

Tips to improve your search results... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: