Select Record Row & Preview as one?
I can make the grid select the entire row... but it''s treating the preview rows as separate from the row they''re previewing, which is not what I want. I want outlook style selection, where the record row and preview get selected together as one thing. I can''t figure out how to make it work, and suggestions?
Thanks,
-Nate
SIGN IN To post a reply.
5 Replies
AD
Administrator
Syncfusion Team
August 30, 2004 03:33 PM UTC
You can handle the cellclick and add the preview row to the current selection. Here is a sample.
If you want the selection to be navigated using the Arrowkeys, then you can use the technique shown in this KB:
http://www.syncfusion.com/Support/article.aspx?id=10496
We are planning to change the selection mechanism in the groupinggrid to be based on record. This will be easier after that. For now, you have to handle this way.
NF
Nate Finch
August 30, 2004 05:13 PM UTC
Thanks... I actually found a better way, by just using a columnset, and putting the preview column under the rest of the columns in the row. But now I''ve having a problem in that I don''t want to show the column header for the preview column... I just posted another topic on that problem.
-Nate
NF
Nate Finch
August 30, 2004 05:15 PM UTC
Actually, I just realized that my "better way" actually has the exact same problem as the preview row - it only selects one "row" at a time. Feh. I''ll take a look at what you posted and see if that''ll work.
Thanks,
-Nate
NF
Nate Finch
August 31, 2004 11:54 AM UTC
I''m implementing this fix, but I''m running into a problem... I want to be able to handle all selection methods, not just clicks, so I put the code into TableControlCurrentCellActivating... however this doesn''t get called when you select a preview cell. The code you posted above works ok if you click, but if you move around with the keyboard, it doesn''t get called. Is there an all in one event that''ll always get called when the currently selected cell/row changes?
-Nate
AD
Administrator
Syncfusion Team
August 31, 2004 01:10 PM UTC
You can try this event to see if it gives you what you need:
this.gridGroupingControl1.TableModel.SelectionChanging
You can check e.Range.
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
NF Nate Finch
- Aug 30, 2004 03:10 PM UTC
- Aug 31, 2004 01:10 PM UTC