Hi JT,
I'm afraid currently the winform datagrid doesn't support input mask.
However, Datagrid control has the ability to let you create your own column
style, you may write your own column style derived class and host the
MaskEdit ActiveX control via COM Interop.
You can add the MaskEdit control to your project by following the steps
below:
1. Right click the Tool Box and select Customize Toolbox
2. Select the COM Component Tab
3. Find the Microsoft Masked Edit Control and check it
4. Click the OK button.
5. In order to let VS.NET IDE generate the interop assemblies, you may drop
the control onto the form then delete it.
For more information on how to write a column style you may refer to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwindowsformsdatagridcolumnstyleclasstopic.asp
there is an sample about howto host an datetimepicker in the column, I hope
it will give you a start for this.
If you have any further quetions on this issue, please feel free to reply
this thread, thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft community Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.