We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Select Record Row & Preview as one?

Thread ID:





18400 Aug 30,2004 03:10 PM UTC Aug 31,2004 01:10 PM UTC WinForms 5
Tags: GridControl
Nate Finch
Asked On August 30, 2004 03:10 PM UTC

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

Administrator [Syncfusion]
Replied On 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.

Nate Finch
Replied On 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

Nate Finch
Replied On 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

Nate Finch
Replied On 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

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon