5
Reply

Mask for DateTime field in PropertyGrid

kumar p

kumar p

Feb 7 2009 10:18 AM
16.5k

All,

How to create a mask to the DateTime field in the propertygrid such a way that, user can enter only in that format. For example, by default "dd/mm/yyyy" should be displayed in the DateTime field. When user key in numbers, the numbers should replace the respective palces. Ofcourse, user can give input from DateTime picker also.

Please, suggest me by giving code snippets or sample source code. Thanks in advance.


Answers (5)