Datagrid DateTime

  • Thread starter Thread starter web1110
  • Start date Start date
W

web1110

I have a table with a field of type datetime.

I am displaying this table in a datagrid. My problem is that the datetime
field shows only the date and not the time.

I'd appreciate some help.

Thanx,
Bill
 
hi web,

Go to the property window for the datagrid, click the property builder to
open the grid properties.
In the bound column that u have added, set the DataFormattingExpression like
this

Displays Date and time - {0:c}
displays only Date - {0:d}

hope this helped you,

Regds,
Kannan.V
 

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

Back
Top