Hi every one . Can you please tell me how i can change the text type field of datagridview to datetime pikcer or calender. if i click on edit columns in datagridview i can only see textbox column, combox, and button i want to change the date field in datagridview from text to calender or datetime picker.

6 Years
Discussion Span
Last Post by dilse4sk

i have copy and pasted a code from msdn site to insert a calender column in the gridview. The coumn has been inserted but when i run the project and when i click on calendar to select a date it gives me this error

Conversion from type 'DBNull' to type 'Date' is not valid.

on this line

        ctl.Value = CType(Me.Value, DateTime)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.