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.

GroupingGridControl Row Changed event

Thread ID:

Created:

Updated:

Platform:

Replies:

63307 Jul 2,2007 09:58 AM Jul 2,2007 12:26 PM Windows Forms 2
loading
Tags: GridControl
Chinedu
Asked On July 2, 2007 09:58 AM

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 11:14 AM

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 12:26 PM

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.

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.

;