SelectedRowChanged event
- Last UpdatedNov 26, 2024
- 1 minute read
The SelectedRowChanged event is raised by the Sample Viewer control on startup of the control and when a different sample row or characteristic row in the top grid is selected by a user. The event is not raised when selecting a result in the bottom grid. This event indicates which sample and, if applicable, which characteristic has been selected.
The SelectedRowChanged event has two read-only properties, SampleID and CharacteristicID.
-
When a different sample row is selected, the SampleID property is set to the sample ID of the newly selected row, and the CharacteristicID property is set to -1.
-
When a different characteristic row is selected, the SampleID and CharacteristicID properties are set to the sample ID and characteristic ID of the newly selected row.