SelectRowByKey() method
- Last UpdatedNov 26, 2024
- 1 minute read
Use the SelectRowByKey() method to search for the specified row ID in the grid. If the row ID is found, the row is selected. If the row ID is not found and the SelectFirstRowAsDefault parameter is set to True, the first row is selected; otherwise the row selection is not changed.
Syntax
result = bool SelectRowByKey(int rowID, bool selectFirstRowAsDefault);
Syntax (with overload)
result = public bool SelectRowByKey(int [] rowIDs,
bool selectFirstRowAsDefault);
Parameters
rowID
An integer value that is the row ID of a row in the Item_Inv table.
selectFirstRowAsDefault
A Boolean value that is set to True if the first row must be selected when there is no match. It is set to False, if the row selection must not change when there is no match.
Return Value
result
A Boolean value that is True if the row ID is found; otherwise it returns False.