Share this page

com.hp.lft.sdk.winforms

## Interface DataGrid

- All Superinterfaces:
    CustomGrid

      public interface DataGrid
      extends CustomGrid

  A .NET Windows Forms data grid control.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `activateColumn(int column)` Double-clicks the specified column header in this grid.
    `void` | `back()` Navigates back to the parent table.
    `void` | `collapseRow(int row)` Collapses the specified row.
    `void` | `expandRow(int row)` Expands the specified row.
    `java.util.List<TableRow<TableCell>>` | `getRows()` Returns the collection of rows.
    `void` | `hideParentRow()` Hides the parent row when the child grid is displayed.
    `void` | `openCellRelation(int row, int column)` Opens the child table referenced by the link in the specified cell.
    `void` | `selectColumn(int column)` Selects (clicks) the specified column header in this grid.
    `void` | `showParentRow()` Displays the parent row when the child grid is displayed.

    - ### Methods inherited from interface com.hp.lft.sdk.winforms.CustomGrid

      `getTableTestObject`

- - ### Method Detail

    - #### activateColumn

          void activateColumn(int column)
                       throws GeneralLeanFtException

      Double-clicks the specified column header in this grid.
      Parameters:
        `column` - 0-based column index
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### back

          void back()
             throws GeneralLeanFtException

      Navigates back to the parent table.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### collapseRow

          void collapseRow(int row)
                    throws GeneralLeanFtException

      Collapses the specified row.
      Parameters:
        `row` - 0-based row number
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### expandRow

          void expandRow(int row)
                  throws GeneralLeanFtException

      Expands the specified row.
      Parameters:
        `row` - 0-based row number
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### hideParentRow

          void hideParentRow()
                      throws GeneralLeanFtException

      Hides the parent row when the child grid is displayed.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### openCellRelation

          void openCellRelation(int row,
                                int column)
                         throws GeneralLeanFtException

      Opens the child table referenced by the link in the specified cell.
      Parameters:
        `row` - 0-based row number
        `column` - 0-based column index
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### selectColumn

          void selectColumn(int column)
                     throws GeneralLeanFtException

      Selects (clicks) the specified column header in this grid.
      Parameters:
        `column` - 0-based column index
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### showParentRow

          void showParentRow()
                      throws GeneralLeanFtException

      Displays the parent row when the child grid is displayed.
      You can use `openCellRelation(int, int)` to display the child table of a selected cell.
      You can use `hideParentRow()` to hide a displayed parent row.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getRows

          java.util.List<TableRow<TableCell>> getRows()
                                               throws GeneralLeanFtException

      Returns the collection of rows.
      Returns:
        the collection of rows.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java 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: