Change datagridview cell value, use my own date format
Posted on 2006-04-01
I have a datagridview with a column populated from a datetime field. I would like to give the user the option to enter dates in the format "051231" for 2005-12-31. The dateparser doesnt understand that format string as a date, therfore I need to do some parsing first. However I cannot find the right event to use for this. Seems that what ever I do the DataError event fires (and I cannot figure out how to go from there to give the cell a proper date, not throwing an error.) The dataset behind is strongly typed.