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.

Event for current record changed

Thread ID:

Created:

Updated:

Platform:

Replies:

29667 May 31,2005 11:57 AM May 31,2005 03:49 PM Windows Forms 3
loading
Tags: GridControl
Lan Mo
Asked On May 31, 2005 11:57 AM

Hello, on GridGroupingcontrol form, I want to fire a user-defined event whenever user click a cell or click navigator to change the current record. what event should I put the code in? Thanks, Lan

Administrator [Syncfusion]
Replied On May 31, 2005 01:01 PM

Try using this.gridGroupingControl1.CurrentRecordContextChange. This event is raised several times as your user interacts with the current record. So you should check the value of e.Action to choose a unique point in this interaction cycle to raise your event.

Lan Mo
Replied On May 31, 2005 02:20 PM

I used e.Action==CurrentRecordAction.EnterRecordComplete It works OK except it fires several times even click different cell on the SAME row. I want it only fires on row change. lan >Try using this.gridGroupingControl1.CurrentRecordContextChange. This event is raised several times as your user interacts with the current record. So you should check the value of e.Action to choose a unique point in this interaction cycle to raise your event.

Administrator [Syncfusion]
Replied On May 31, 2005 03:49 PM

Try handle CurrentCellMoved. private void gridGroupingControl1_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e) { GridCurrentCell cc = e.TableControl.CurrentCell; Console.WriteLine(cc.MoveToRowIndex != cc.MoveFromRowIndex); }

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.

;