Datagrid Formatting

  • Thread starter Thread starter Jorge Cavalheiro
  • Start date Start date
J

Jorge Cavalheiro

Hello

I have a datagrid bound to a dataset which is filled with
a table with datetime fields.
The datagrid displays them as '26-12-2003' instead of '26-
12-2003 20:00:00'.

I've checked the type of GridColumnStyles of the 2
columns and they are both DataGridTextBoxColumn.

How do i change it so the date are correctly displayed?

Thanks


Kind regars
Jorge Cavalheiro
 
Can't you use the Format property of the DataGridTextBoxColumn? This should
do the trick!
 
Back
Top