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

How to customize user defined masks?

Thread ID:





76904 Sep 29,2008 10:05 PM UTC Oct 1,2008 12:58 PM UTC WinForms 1
Tags: GridControl
Fan Zhang
Asked On September 29, 2008 10:05 PM UTC

My syncfusion version is

I am developing a windows form.

I am trying to use "MaskEdit" as the cell type for some cells. The cells should only accepts user input characters “ABC~|&()” that make up logic equations. Is there a way to define a mask myself?

Thank you.

Nisha Arockiya A [Syncfusion]
Replied On October 1, 2008 12:58 PM UTC

Hi Fan,

Thanks for your interest in Syncfusion Products.

The problem with trying to use a Mask cell to handle this kind of requirement is that it is hard to make the mask flexible with respect to length and order of characters.

A simpler way to handle this requirement would be to use the CurrentCellValidateString event. There, you are passed in the proposed string and you can cancel the change if the string is not valid for any reason. Here is a minimal sample showing the use of this event.


Please let us know if this event will not serve your needs.



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

or the page will be automatically redirected to 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