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

GroupingGridControl Row Changed event

Is there a RowChanged event for the GridGroupingControl.

I want to update a member variable whenever a new row is selected in the Grid.

2 Replies

HA haneefm Syncfusion Team July 2, 2007 03:14 PM UTC

Hi Nedu,

You can try handling the TableControlCurrentCellMoved event :

void gridGroupingControl1_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e)
{
if (e.TableControl.CurrentCell.MoveToRowIndex != e.TableControl.CurrentCell.MoveFromRowIndex)
{
GridTableCellStyleInfo style = e.TableControl.GetViewStyleInfo(e.TableControl.CurrentCell.RowIndex, e.TableControl.CurrentCell.ColIndex) as GridTableCellStyleInfo;
if( style.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record )
{
Console.WriteLine("Row Changed Event");
}
}
}

Best regards,
Haneef


CH Chinedu July 2, 2007 04:26 PM UTC

Thanks Haneef.

Thank you very much for the prompt reply

Loader.
Live Chat Icon For mobile
Up arrow icon