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.
Syncfusion Feedback

GroupingGridControl Row Changed event

Thread ID:

Created:

Updated:

Platform:

Replies:

63307 Jul 2,2007 01:58 PM UTC Jul 2,2007 04:26 PM UTC Windows Forms 2
loading
Tags: GridControl
Chinedu
Asked On July 2, 2007 01:58 PM UTC

Is there a RowChanged event for the GridGroupingControl.

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

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

Chinedu
Replied On July 2, 2007 04:26 PM UTC

Thanks Haneef.

Thank you very much for the prompt reply

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

;