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.

MonthCalendar Date Mask

Thread ID:

Created:

Updated:

Platform:

Replies:

24621 Feb 8,2005 10:33 AM Feb 8,2005 11:08 AM Windows Forms 1
loading
Tags: GridControl
Chris Thompson
Asked On February 8, 2005 10:33 AM

How can I mask the entry of a date in a MonthCalendar cell type on a griddataboundgrid? My users would like to type a date like 02122005 and have it masked as 02/12/2005. Currently it throws aa error if no sepatators are used.

Administrator [Syncfusion]
Replied On February 8, 2005 11:08 AM

One possible solution is to handle the CurrentCellValidateString method and verify the text is valid with each keystroke. Here is a sample showing this method. The second option is to use our DateTimePicker in a cell and format it. Here is a sample showing this implementation.

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.

;