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.

RowLeave event for GridControl?

Thread ID:





4937 Jun 9,2003 09:40 PM Jun 10,2003 02:15 AM Windows Forms 1
Tags: GridControl
Sue Harris
Asked On June 9, 2003 09:40 PM

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

Administrator [Syncfusion]
Replied On June 10, 2003 02:15 AM

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


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.