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
 
Back
Top