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

RowLeave event for GridControl?

Thread ID:

Created:

Updated:

Platform:

Replies:

4937 Jun 10,2003 01:40 AM UTC Jun 10,2003 06:15 AM UTC Windows Forms 1
loading
Tags: GridControl
Sue Harris
Asked On June 10, 2003 01:40 AM UTC

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 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
	}
}

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

;