update datetime column in datagridview

sid

Member
Joined
Sep 16, 2011
Messages
13
Programming Experience
Beginner
hi frnds,
i have a window based datagridview with "examdate" as one the editable datetime column .Now i want user to update or change the date to a fully valid format(dd:mm:yyyy) just on pressing enter key within the datagridview. A popup message must appear when user enter wrong date.
Any help will be highly thnkful.
 
Would it not be better to use a DateTimePicker, just as you would for dates if the field was stand-alone? There's an example of hosting controls in a DataGridView on MSDN that uses DateTimePickers.
 
Back
Top