Dataset.GetXml() problem
-
I have dataset which is binded to datagrid and dateformating is done based on culture. This happens fine with out any problem. If my dataset is retrieved as a xml string using dataset.GetXML then converted to dataset and binded to datagrid. The date formatting wont take place instead it displays in the following format 2005-02-09T14:13:24.8280000-00:00. But I want the dateformatting to take place on datagrid in either of the case. Padvit
-
I have dataset which is binded to datagrid and dateformating is done based on culture. This happens fine with out any problem. If my dataset is retrieved as a xml string using dataset.GetXML then converted to dataset and binded to datagrid. The date formatting wont take place instead it displays in the following format 2005-02-09T14:13:24.8280000-00:00. But I want the dateformatting to take place on datagrid in either of the case. Padvit
Hi there. I wonder if the data is being interpreted as a string rather than a date? If so, you might consider using a format string for it. For example, if you are using a
BoundColumn
, then set itsDataFormatString
property to "{0:d}" for a short date format, or "{0:D}" for a long date format. -
Hi there. I wonder if the data is being interpreted as a string rather than a date? If so, you might consider using a format string for it. For example, if you are using a
BoundColumn
, then set itsDataFormatString
property to "{0:d}" for a short date format, or "{0:D}" for a long date format.