473,503 Members | 939 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Databinding to a grid - DateTime problem

When I bind a table containing the DateTime field, to a grid, the
column is showing up, 2008-09-22T12:15:59.

I would like to format the value as 22-09-2008 12:15:59

Any ideas how to achieve it??

Thanks in advance.

-Cnu
Sep 23 '08 #1
7 1765
On Sep 23, 2:09*pm, Duggi <DuggiSrinivasa...@gmail.comwrote:
When I bind a table containing the DateTime field, to a grid, the
column is showing up, 2008-09-22T12:15:59.

I would like to format the value as 22-09-2008 *12:15:59

Any ideas how to achieve it??

Thanks in advance.

-Cnu
does anyone know how to remove T and format DateTime to grid?

-Cnu
Sep 23 '08 #2
What grid are you using? WinForms? ASP.NET? WPF? Other?
What data source are you using? typed classes? DataTable? xml?

Marc
Sep 23 '08 #3
On Sep 23, 3:32*pm, Marc Gravell <marc.grav...@gmail.comwrote:
What grid are you using? WinForms? ASP.NET? WPF? Other?
What data source are you using? typed classes? DataTable? xml?

Marc
WinForm - DevExpress Grid

DataSource, I specified as one of the object in the project. (an XSD
file)

-Cnu
Sep 23 '08 #4
Then it sounds like it might be a question for DevExpress.

Given the "T", it sounds like you are binding xml to the gri - is this
correct?

Marc
Sep 23 '08 #5
On Sep 23, 4:01*pm, Marc Gravell <marc.grav...@gmail.comwrote:
Then it sounds like it might be a question for DevExpress.

Given the "T", it sounds like you are binding xml to the gri - is this
correct?

Marc
Yes. I am binding XML that comes out of a table to DevExpress Grid.

-Cnu
Sep 23 '08 #6
Then you might want to verify the xsd type that the property exposes,
but *really* this is a question
for:http://www.devexpress.com/support/center/
Sep 23 '08 #7
On Sep 23, 4:59*pm, Marc Gravell <marc.grav...@gmail.comwrote:
Then you might want to verify the xsd type that the property exposes,
but *really* this is a question
for:http://www.devexpress.com/support/center/
Thanks Marc, I will find it with DevExpress support Team.

-Cnu
Sep 23 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3848
by: Richard | last post by:
Hi, I have a DateTime picker control on a form. The datetime picker control is data bound to a column in a DataTable. Yes I know about bound DateTime pickers and DBNull and etc. so no troubles...
9
2291
by: Nathan Sokalski | last post by:
I have a very simple UserControl which contains an Image and a Label, which I use to display an image with a caption. I am using this control inside a DataList, setting the two Public variables...
8
2073
by: Dirk | last post by:
Hello, I have a problem to use databinding with my business layer classes. My data class does not have simple properties (string, int or datetime), instead, all my properties are objects of the...
0
4309
by: Czechtim | last post by:
Hello, I have problem with databinding. I created small application using structure that I need to demonstrate problem. I need to change content of label when changing content of property...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.