Interface IGrid
A grid control in a SAP GUI for Windows application.
Inherited Members
Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface IGrid : ITableBase<IGridCell>, IEnabledProvider, IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject
Properties
FirstVisibleRow
The first row visible in a scrolled area.
Declaration
ITableRow<IGridCell> FirstVisibleRow { get; }
Property Value
| Type | Description |
|---|---|
| ITableRow<IGridCell> |
SelectionMode
The possible selections in the grid.
Declaration
GridSelectionMode SelectionMode { get; }
Property Value
| Type | Description |
|---|---|
| GridSelectionMode |
Methods
ActivateColumn(string)
Double-clicks the specified column in the grid by column name.
Declaration
void ActivateColumn(string column)
Parameters
| Type | Name | Description |
|---|---|---|
| string | column | 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.
Declaration
void ActivateColumn(uint columnIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | columnIndex | 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.
Declaration
void ActivateRow(uint rowIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | rowIndex | The 1-based index of the row. |
ClearSelection()
Clears the selected rows or columns in the grid.
Declaration
void ClearSelection()
PressEnter()
Presses the ENTER key when the grid is in focus.
Declaration
void PressEnter()
SelectMenuItemById(string)
Selects the specified menu item from a context menu.
Declaration
void SelectMenuItemById(string menuItemId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | menuItemId | 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.