SelectRowByKey() method
- Last UpdatedNov 26, 2024
- 1 minute read
Use the SelectRowByKey() method to search for the specified sample ID in the grid. If the sample ID is found, the row is selected. If the sample ID is not found and the SelectFirstRowAsDefault parameter is set to True, the first row is selected; otherwise the row selection is not changed. This method returns a Boolean value that is True if the sample ID is found; otherwise it returns False.
Syntax
result = bool SelectRowByKey(int sampleId);
Parameter
sampleId
An integer that indicates the sample ID of a row in the sample table.
Return Value
result
A Boolean value that is True, if a match is found; otherwise it returns False.