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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Prevent user from entering wrong values with custom error Message.

Thread ID:





63907 Jul 11,2007 12:28 PM UTC Jul 11,2007 05:24 PM UTC WinForms 1
Tags: GridControl
Asked On July 11, 2007 12:28 PM UTC

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.


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

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,


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