how can i change the format of the column? instead of
1/2/2009 6:00:00 PM i want it to be
1/2/2009 18:00:00
if i transfer it to excel it shows the right the format but in datagridview its different..
Printable View
how can i change the format of the column? instead of
1/2/2009 6:00:00 PM i want it to be
1/2/2009 18:00:00
if i transfer it to excel it shows the right the format but in datagridview its different..
You have to edit the DefaultCellStyle property of the column and set the Format property of that. You can assign any date/time format string supported by the Framework. The MSDN documentation can tell you what they are.