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

[Solved] Strange formatting behavior

1 Answer 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eric Schoenholzer
Top achievements
Rank 2
Eric Schoenholzer asked on 10 Nov 2009, 12:36 AM

Hi, I'm using the following code to show a date column:

 <telerik:GridViewDataColumn Header="Startdatum" TextAlignment="Right" DataMemberBinding="{Binding Startdatum}" SortingState="Descending" ></telerik:GridViewDataColumn> 

Without a DataFormatString="{}{0:d}" the date is formatted with an English culture, with the DataFormatString with the correct German culture.

Shouldn't always the current culture be used or at least the same? Is this a bug?

Thanks

Eric

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Nov 2009, 06:33 AM
Hello Eric,

Since we don't have any DataFormatString set by default this is expected. You can check both grids (MS and our own) behavior in the attached application.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Eric Schoenholzer
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Share this question
or