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?
ADAdministrator Syncfusion Team August 30, 2004 11:33 AM
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:
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.
NFNate FinchAugust 30, 2004 01:13 PM
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.
NFNate FinchAugust 30, 2004 01:15 PM
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.
NFNate FinchAugust 31, 2004 07:54 AM
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?
ADAdministrator Syncfusion Team August 31, 2004 09:10 AM
You can try this event to see if it gives you what you need:
You can check e.Range.