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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MonthCalendar Date Mask

Thread ID:





24621 Feb 8,2005 03:33 PM UTC Feb 8,2005 04:08 PM UTC WinForms 1
Tags: GridControl
Chris Thompson
Asked On February 8, 2005 03:33 PM UTC

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 04:08 PM UTC

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.


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