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. Image for the cookie policy date

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

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

1 Reply

AD Administrator Syncfusion Team 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"));
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon