Hi
How I can set ColumnType to MaskedTextBox in DataGridView?
darab
-4
Junior Poster in Training
Recommended Answers
Jump to PostI believe a maskedTextBox is a bit of an old fashioned kind of UI style of programming. Use Validate and Validating events if you want to check the input in a TextBox or use a DateTimePicker for a date.
Jump to PostMake a DateTimePicker control in one of your columns see how to do it here
That way your dates are always of the correct format and you don't even have to implement the …
Jump to PostRead this article - DataGridView Tips and Tricks
All 9 Replies
darab
-4
Junior Poster in Training
ddanbe
2,724
Professional Procrastinator
Featured Poster
darab
-4
Junior Poster in Training
ddanbe
2,724
Professional Procrastinator
Featured Poster
darab
-4
Junior Poster in Training
Dajer
0
Junior Poster in Training
darab
-4
Junior Poster in Training
darab
-4
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
Dajer
commented:
it helps me.thx.
+1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.