I'm using the devExpress QuantumGrid, and I'm wondering that there is no onRowChange eve开发者_JAVA技巧nt. How can I determine when the selected row has changed?
I could use the onCellClick event, but this isn't fired when the user scrolls with the cursor keys - It doesn't seem very suitable for that purpose.
Any ideas? Thanks a lot!
The TcxGridTableView
class owns the OnSelectionChanged
event.
From the online help:
Keep in mind the difference between selected and focused records. There can be only one focused record within a View at any time. If the View.OptionsSelection.MultiSelect option is deactivated, then the focused record is the selected record. In this case, the OnSelectionChanged event is not raised. You need to handle the OnFocusedRecordChanged event instead.
You can use the Dataset's event AfterScroll. It is fired when the current row of the dataset changes.
OnFocusedRecordChanged
from the view
精彩评论