开发者

Delphi QuantumGrid - rowChanged event?

开发者 https://www.devze.com 2023-01-16 19:45 出处:网络
I\'m using the devExpress QuantumGrid, and I\'m wondering that there is no onRowChange eve开发者_JAVA技巧nt.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消