One Final Datagrid Question.......

M

Mike Fellows

apologies for the amount of questions I have asked about datagrids lately
this is now my final one

my datagrid is populated from an MS Access Query, one of the columns within
the datagrid is a date and time
column, Now within the access database it shows the date AND time perfectly
(as you would expect) but when
it is put into the datagrid it only shows the date! I have tried everything
to get it to show the time as well and it
never shows the time

How do i get the datagrid to show the date AND time?



Regards

Mike Fellows
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi Mike,

For the WinForms data grid, it should be enough to set the proper Format
property value on the corresponding DataGridColumnStyle. You might wish to
review the "Showing Time in Grid" thread in this newsgroup for more
technical details.
 

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