Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 datagrid datetime field error

Author  Topic 

devinev
Starting Member

16 Posts

Posted - 2004-11-15 : 16:37:02
I am displaying a datetime field in a datagrid in a Windows Forms application. The datagrid is only showing the datepart of the datetime field and I want to display both date and time. What follows is the code I am using:
' Clear dataset
dsDBView.Clear()
' fill dataset
daDBView.Fill(dsDBView)
Me.dgDBView.SetDataBinding(dsDBView, tblName)
Me.dgDBView.Visible = True

Can anybody enlighten me on this. I have tried reviewing Microsoft's explanation and became totally confused.

Thanks,

Vee Dee

chadmat
The Chadinator

1974 Posts

Posted - 2004-11-15 : 17:29:51
What is the query used to retriece the data? You could covert that date data into the format you want in the query.

-Chad

http://www.clrsoft.com

Software built for the Common Language Runtime.
Go to Top of Page
   

- Advertisement -