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.

GridDataBoundGrid - MaskEdit cell type

Thread ID:

Created:

Updated:

Platform:

Replies:

50913 Oct 23,2006 01:33 PM Oct 23,2006 07:31 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 23, 2006 01:33 PM

Hi,

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:

10-30
or
2-10-30

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 07:31 PM

Hi Vito,

Please refer this forum thread,
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=50916

Thanks,
Rajagopal

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.

;