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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

RowLeave event for GridControl?

Thread ID:





4937 Jun 10,2003 01:40 AM UTC Jun 10,2003 06:15 AM UTC WinForms 1
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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon