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.

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)