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 selection events

Thread ID:

Created:

Updated:

Platform:

Replies:

104488 Jul 23,2012 04:44 PM UTC Jul 30,2012 06:56 AM UTC WinForms 1
loading
Tags: Grouping
Chris Anderson
Asked On July 23, 2012 04:44 PM UTC

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

Kalaiarasan B [Syncfusion]
Replied On 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


CONFIRMATION

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.

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

;