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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl get selected rows

Thread ID:





47032 Jul 26,2006 08:13 PM UTC Jul 27,2006 05:37 AM UTC WinForms 1
Tags: GridControl
Asked On July 26, 2006 08:13 PM UTC

I have a gridgroupingcontrol instance and have set the properties to allow the user to select multiple rows. I plan on capturing a keypress (Ctrl-c) and when that fires need to get all the rows that the user has selected.

I can not see where to get this information...where do I get all the currently selected rows?

Administrator [Syncfusion]
Replied On July 27, 2006 05:37 AM UTC

Hi Rich,

You can get the selected rows in the grid, by hooking to the SelectedRecordsChanged event of the gridgroupingcontrol. Please make sure that you have set the ListBoxSelectionMode to some thing other than none and AllowSelection property to None. This will enable the record based selection support for the grid.

this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None;

// SelectedRecordsChanged event
if( e.SelectedRecord != null )
Console.WriteLine( e.SelectedRecord.Record );
// To get the number of selected records
Console.WriteLine( e.Table.SelectedRecords.Count );

Also, take a look into this forum thread

Let me know if you have any other questions.


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