Interface IGrid
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
SelectionMode
The possible selections in the grid.
GridSelectionMode SelectionMode { get; }
Property Value
Methods
ActivateColumn(string)
Double-clicks the specified column in the grid by column name.
void ActivateColumn(string column)
Parameters
columnstringThe 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
columnIndexuintThe 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
rowIndexuintThe 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
menuItemIdstringThe 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.