This is a migrated thread and some comments may be shown as answers.

GridViewDateTimeColumn Format String

2 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin Meyer
Top achievements
Rank 1
Kevin Meyer asked on 24 Mar 2008, 03:42 PM
In Q3 2007 SP1 we were formatting a DateTime column using gridViewDateTimeColumn.Format = "{0:dd-MMM-yyy}";  This no longer works.

Using the control spy, the column's format shows "{0}".  If I change it back to "{0:dd-MMM-yyy}" in the control spy, the values are formatted appropriately.

I've also tried setting the DataTextFormatString when initializing the column, with the same results.

2 Answers, 1 is accepted

Sort by
0
Kevin Meyer
Top achievements
Rank 1
answered on 24 Mar 2008, 04:14 PM
I'm also having a similar problem with GridGroupByField.FormatString.  I am unable to format the date as desired.  For example: "{1:dd-MMM-yyy}"
0
Nikolay
Telerik team
answered on 27 Mar 2008, 01:24 PM
Hello Kevin Meyer,

Thank you for reporting these issues.

We will try to address them as soon as possible.

If you have additional questions, do not hesitate to contact me.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Kevin Meyer
Top achievements
Rank 1
Answers by
Kevin Meyer
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or