i have a datagridView with a cell whose data type is Datetime. The value of the cell is formatted as HH:mm (hours, minutes). When the user edits the cell with a value like 5, I would like to transform it into 05:00 before the datagridView complains that the value entered is not a valid datetime.
I have tried the validating event but there I cannot change the Formatted value, I can only Cancel. I know what I am asking is possible because I have done it in another project, but I cannot access the code of that project to see how I did it. Please help. Thanks