Table of Contents

Interface IGrid

Namespace
HP.LFT.SDK.SAP.GUI
Assembly
HP.LFT.SDK.dll

A grid control in a SAP GUI for Windows application.

public interface IGrid : ITableBase<IGridCell>, IEnabledProvider, IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject
Inherited Members
Extension Methods

Properties

FirstVisibleRow

The first row visible in a scrolled area.

ITableRow<IGridCell> FirstVisibleRow { get; }

Property Value

ITableRow<IGridCell>

SelectionMode

The possible selections in the grid.

GridSelectionMode SelectionMode { get; }

Property Value

GridSelectionMode

Methods

ActivateColumn(string)

Double-clicks the specified column in the grid by column name.

void ActivateColumn(string column)

Parameters

column string

The name of the column.

Remarks

Double-clicking selects the entire column, displays another window, or performs another application-specific action.

ActivateColumn(uint)

Double-clicks the specified column in the grid by column index.

void ActivateColumn(uint columnIndex)

Parameters

columnIndex uint

The 1-based index of the column.

Remarks

Double-clicking selects the entire column, displays another window, or performs another application-specific action.

ActivateRow(uint)

Double-clicks the specified row in a grid.

void ActivateRow(uint rowIndex)

Parameters

rowIndex uint

The 1-based index of the row.

ClearSelection()

Clears the selected rows or columns in the grid.

void ClearSelection()

PressEnter()

Presses the ENTER key when the grid is in focus.

void PressEnter()

SelectMenuItemById(string)

Selects the specified menu item from a context menu.

void SelectMenuItemById(string menuItemId)

Parameters

menuItemId string

The SAP ID for the menu item.

Remarks

A context menu is opened by right-clicking the grid. Use ITableBase.SelectColumn , TableBase.SelectRow, or ITableBase.SelectCell to open the context menu before invoking this method.