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
close icon

GridGroupingControl selection events

Hello,

I am using a GridGroupingControl with the MultiExtended SelectionMode. When dragging a selection with the left mouse button down, an event is generated for each new record added to the selection.

Is it possible to just one event for the final selection once the user has finished, instead of getting deltas while the selection is occurring?

Many thanks,
Chris

1 Reply

KB Kalaiarasan B Syncfusion Team July 30, 2012 06:56 AM UTC

Hi Chris,

Thank you for your interest in Syncfusion products.

 The SelectedRecordsChanged event will be fired for the selection of each records on the table individually which is a default behavior.

 If your intention is to process the selected records after selection, instead of using the SelectedRecordChanged event, you can make use of the TableControlCellClick event which provides you the exact selected range of the SelectedRecords in single click.

 Please refer the code below:

 void gridGroupingControl1_TableControlCellClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e)

{

    MessageBox.Show(this.gridGroupingControl1.Table.SelectedRecords.Count.ToString());

}

 Also refer the sample attached in the below location:

 http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=SelectionSample1497588930.zip

 Let me know if you have any queries.

 Regards,

Kalai


Loader.
Live Chat Icon For mobile
Up arrow icon