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

GridDataBoundGrid - MaskEdit cell type

Thread ID:





50916 Oct 23,2006 05:42 PM UTC Oct 23,2006 11:29 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On October 23, 2006 05:42 PM UTC


I have a cell which needs to allow the user to enter either 2 or 3 sets of numbers seperated by '-'.

e.g. could be:


The problem with using a Mask such as:

mask.Mask = "##-##-##";

Is that the number's are sometimes 2 digits long and sometimess 1. Furthermore, sometimes the mask should be ##-## and other times ##-##-##.

It seems like I therefore can't use a CellType of MaskEdit but should handle CurrentCellAcceptedChanges and write some code to do checking myself after every key stroke the user does.

Can someone get back with whether this is the recommended approach or there is a better way of achieving this?

Administrator [Syncfusion]
Replied On October 23, 2006 11:29 PM UTC

Hi Vito,

Please try the below mask setting,

// MaskEdit.Mask = "99-99-99";

Let me know if this does not help.


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