i jst want to bind a grid which has date column
& the user shld be able to add date in each row of the date column
if no date is added the default date of 01/01/1900 shld be saved in db
You don't have to do anything specific to display a date value in a DataGridView. You can display a DateTime value in a DataGridView in exactly the same way as you display a String in a DataGridView. If you can do one, you can do the other.
If the error message say that the String you entered was not recognised as a valid DateTime then the obvious solution is to enter a String that is recognised as a valid DateTime. That is exactly why you should use a DateTimePicker in each cell rather than a TextBox: so that the user can't enter an invalid value. If you are going to use a text box column then you will need to provide code that will handle the situation where the user enters invalid data and the error message tells you how to do that. To enter valid data you need to use a valid date/time format for the current system, which are defined by the regional settings on the machine, or else set the Format of the DefaultCellStyle for that column to the exact format string you want to use.
Having said all that, exactly what value was it was the issue and exactly how was that value entered? Was it something you entered yourself or was it a blank value maybe?
i think there is a lot of confusion as whtever i try i am not getting he end result
frm all above thread i came to a conclusion tht using datepicker is the best way
i m trying it ifant issue will get back