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

CurrentCellValidated event

Thread ID:





4008 Apr 23,2003 01:05 PM UTC Apr 23,2003 02:05 PM UTC WinForms 1
Tags: GridControl
Glenn Doherty
Asked On April 23, 2003 01:05 PM UTC

I am using the CurrentCellValidated event to detect invalid text added to a cell. If I detect invalid text I want to issue an error and keep the cursor in the cell. I tried canceling the move event, by setting a flag in the validate event and then canceling the move in the CurrentCellMoving event. This doesn't seem to work, any suggestions would be appreciated.

Administrator [Syncfusion]
Replied On April 23, 2003 02:05 PM UTC

Try using the CurrentCellValidating event instead of the CurrentCellValidated event. In Validating, you can set e.Cancel to cancel the move. To get the new text, use grid.CurrentCell.Renderer.ControlText. You can also set grid.CurrentCell.ErrorMessage to have the grid display a message for you if you like.


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