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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Event for current record changed

Thread ID:

Created:

Updated:

Platform:

Replies:

29667 May 31,2005 03:57 PM UTC May 31,2005 07:49 PM UTC WinForms 3
loading
Tags: GridControl
Lan Mo
Asked On May 31, 2005 03:57 PM UTC

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 05:01 PM UTC

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 06:20 PM UTC

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 07:49 PM UTC

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.

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

;