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.
Unfortunately, activation email could not send to your email. Please try again.

on select row event for GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

54644 Jan 12,2007 03:02 PM Jan 15,2007 06:10 AM Windows Forms 1
loading
Tags: GridControl
Sergei
Asked On January 12, 2007 03:02 PM

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 06:10 AM

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.

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.

;