Datagridview - Formatting a column to accept dates only

princessjasmin

New member
Joined
Sep 3, 2006
Messages
4
Programming Experience
Beginner
Hi there, a simple question for vb.net gurus: i have a dataviewgrid with a date column that takes text input. I want to format the column so that it only accepts date data entry.
i used the following, which doesnt appear to restrict user input to dates only, you can type whatever you want in the column and an error occurs when you move off the cell:

DataGridSubs.Columns(intSubEndDateCol).ValueType = GetType(System.DateTime)

any solutions would be greatly appreciated.
PJ ;)
 
Back
Top