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... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: