SelectRowByKey() method
- Last UpdatedMar 07, 2025
- 1 minute read
Use the SelectRowByKey() method to select the specified row in the grid. If the row is not found optionally, the last row is selected based on a parameter. If the specified row cannot be found and the selectLastRowAsDefault parameter is False, then the existing selected row is left and a False value is returned. If a new row is selected, it enables/disables any buttons based on this new selection.
Syntax
result = SelectRowByKey(rowID, selectLastRowAsDefault);
Parameters
rowID
A long value representing the row ID of the selected row.
selectLastRowAsDefault
A boolean value that is the last row if the row is not found.
Return Value
result
A boolean value that is True, if the row ID is found; otherwise it returns False.