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.

CurrentCellValidated event

Thread ID:

Created:

Updated:

Platform:

Replies:

4008 Apr 23,2003 09:05 AM Apr 23,2003 10:05 AM Windows Forms 1
loading
Tags: GridControl
Glenn Doherty
Asked On April 23, 2003 09:05 AM

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 10:05 AM

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.

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.

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.

;