Datagrid Formatting

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
 
J

Jan Tielens

Can't you use the Format property of the DataGridTextBoxColumn? This should
do the trick!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top