Datahighway Posted September 7, 2003 Posted September 7, 2003 Hi All, i have a trouble with the datagrid. In my Access 2000 database is a field (dateand time) , that contain a date with this format 07.09.2003. When i bind the datagrid, the datagrid shows a different format. 07.09.2003 00:00:00. Any Idea ?? Regards Datahighway Quote
Cassio Posted September 7, 2003 Posted September 7, 2003 I guess theres a property on the BoundColumn called datastringformat. You can use that to format your date. Quote Stream of Consciousness (My blog)
Moderators Robby Posted September 7, 2003 Moderators Posted September 7, 2003 The BoundColumn has a property called DataFormatString, you can set it to something like this ... {0:g} More details here http://ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpcondatetimeformatstrings.htm Quote Visit...Bassic Software
Datahighway Posted September 11, 2003 Author Posted September 11, 2003 Hi Robby , thanks for you Solution, but there was a litte error. The property of the DataFromatString is {0:d}. Regards Datahighway Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.