on select row event for GridGroupingControl

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

1 Reply

AD Administrator Syncfusion Team 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);
}
}

Loader.
Up arrow icon