I have a datagridview that fills the data from the database, there are columns in which I have the date and time in the format "MMddyyyy" and "hhmmss", what I want to do, when the datagridview is loaded, I want to change this format to whatever then another format says: dd-MM-yy for date and time hh-mm-ss. I was wondering if anyone could help me how to do this. I could not do this using gridview.columns [x] .defaultcellstyle.format = "dd-MM-yy" with the above, I do not get errors, but nothing changes in gridview ...
thank
Note. I also have no way to change the length of a column in the database .. :-( no syntax problems
source
share