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.

Prevent user from entering wrong values with custom error Message.

Thread ID:

Created:

Updated:

Platform:

Replies:

63907 Jul 11,2007 08:28 AM Jul 11,2007 01:24 PM Windows Forms 1
loading
Tags: GridControl
Manoj
Asked On July 11, 2007 08:28 AM

Hi Haneef,

I want to prevent user from entering wrong values and show him with custom error Message like "Please enter number only" or "Values can only start with A".

Thanks in advance.

-Manoj.

haneefm [Syncfusion]
Replied On July 11, 2007 01:24 PM

Hi ,

One way you can do this by handling the CurrentCellValidateString event which does character wise validation.The CurrentCellValidateString is fired with each key. This examines each key stroke in a cell. Please refer to this KB article ( What are the different validation events and event members? When are they triggered and how are they used? ) for more details.

Best regards,
Haneef

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.

;