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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

on select row event for GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

54644 Jan 12,2007 08:02 PM UTC Jan 15,2007 11:10 AM UTC WinForms 1
loading
Tags: GridControl
Sergei
Asked On January 12, 2007 08:02 PM UTC

Dear fellow
Can I get your assistance with GridGroupingControl, please?

What event do I need to subscribe to be notified on change of selected row?

I’ve tried without success the following two events in BindingAarrayList_2005 C# sample: GridGroupingControl.SelectedRecordChanged and GridGroupingControl.TableModel. SelectedRecordChanged.

Sergei

Administrator [Syncfusion]
Replied On January 15, 2007 11:10 AM UTC

The events you mention try to flag changes in the this.gridGroupingControl1.Table.SelectedRecords collection. This is the collection of selected recrods that you get when you use the grid in ListBoxMode (by setting TableOptions.AllowSelections=None and TableOptionsListBoxMode to something other that None).

If you are not using these properties, then you can try using the CUrrentRecordContextChanged event. this event is raised often, but you can check the e.Action to pick out only the moving of the current record.

void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
{
if (e.Action == Syncfusion.Grouping.CurrentRecordAction.LeaveRecordComplete)
{
Console.WriteLine(e.Record);
}
}

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

;