"8/12/2005 11:05:01 PM" in db, but only "8/12/2005" appears in datagrid

ssfftt

Well-known member
Joined
Oct 27, 2005
Messages
163
Programming Experience
1-3
"8/12/2005 11:05:01 PM" in db, but only "8/12/2005" appears in datagrid

i have a dabacolumn "startDate" that contains data in a format as : "8/12/2005 11:05:01 PM"

when i fill this table into a dataset and bind it with a datagrid, at run time the startDate column in datagrid only shows like "8/12/2005"

can any one help plz, I want the datagrid startTime column display exactly what is stored in db.
 
Change the format of the collumn of the grid. By default it's set to display the date only. Changing the column styles should allow you to set it to display the time as well.

-tg
 
Back
Top