SelectRowByKey(int LogId, bool SelectFirstRowAsDefault) method
- Last UpdatedSep 19, 2024
- 1 minute read
Use the SelectRowByKey() method to search and select the first row in the grid that matches the specified log_id. If the supplied log_id is not found in the grid, then the row selection is unchanged or set to the first row depending on the second parameter.
Syntax
SelectRowByKey(int LogId, bool SelectFirstRowAsDefault);
Parameters
LogId
Holds an integer value representing a log_id value in the labor_usage table.
SelectFirstRowAsDefault
Holds a boolean value indicating whether the first row in the grid should be selected, in case the supplied log_id does not exist in the grid. This parameter should be set to false if the row selection should not be changed in a case where the supplied log_id is not found in the grid. It returns true if the log_id is found in the grid.
Return value
The method returns a Boolean value that is true if the log_id is found in the grid.