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

Event when focus moves from one row to another on grid?

Thread ID:

Created:

Updated:

Platform:

Replies:

31788 Jul 14,2005 01:46 PM UTC Jul 14,2005 02:13 PM UTC Windows Forms 1
loading
Tags: GridControl
Catinat Velmourougan
Asked On July 14, 2005 01:46 PM UTC

hi, I have a grouping grid. The user moves from one row to another either by using arrow keys or by using the mouse.I want to get the current Row and pick some values from the corresponding row.Can I know what event should I use? regards, Catinat

Administrator [Syncfusion]
Replied On July 14, 2005 02:13 PM UTC

You an use the CurrentRecordContextChange event.
private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
{
	if(e.Action == CurrentRecordAction.EnterRecordComplete
		&& e.Record is GridRecord)
	{
		GridRecord rec = e.Record as GridRecord;
		Console.WriteLine("GoTo Record " + rec.GetValue("Col2"));
	}
	else if(e.Action == CurrentRecordAction.LeaveRecordComplete
		&& e.Record is GridRecord)
	{
		GridRecord rec = e.Record as GridRecord;
		Console.WriteLine("Leave Record " + rec.GetValue("Col2"));
	}
}

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

;