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
close icon

RowLeave event for GridControl?

Hi, I'm looking for something similar to the RowLeave event in the GridDataBoundGrid. I have a GridControl which I want to validate a rows cell values whose validation depends on other cells in the row. The validation can only really occur when the user has finished modifying the row and is moving to another row. Does anyone have any suggestions which event I could use? Thanks, Sue

1 Reply

AD Administrator Syncfusion Team June 10, 2003 06:15 AM UTC

You can try using CurrentCellMoving and checking the MoveToRowIndex and MoveFromRowIndex.
private void gridControl1_CurrentCellMoving(object sender, GridCurrentCellMovingEventArgs e)
{
	GridCurrentCell cc = this.gridControl1.CurrentCell;
	if(cc.MoveToRowIndex != cc.MoveFromRowIndex)
	{
		Console.WriteLine("entering new row");
		//set e.Cancel to cancel the move
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon