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

Little Sorting problem

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jouni
Top achievements
Rank 1
Jouni asked on 16 Jan 2009, 09:40 AM
Hello,

I have intresting sorting problem. I have column where is date in format dd.mm.yyy. When I try sort by the date column, it always automaticly change date format to yyyy-mm-dd. How can I force grid to keep orginaly date forma(dd.mm.yyy)

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Jan 2009, 10:55 AM
Hello Jouni,

I have tried the scenario and it is working fine on my end. At this point I can suggest you to include DateFormatString for the date column and check whether its working fine for you.

ASPX:
<telerik:GridBoundColumn DataField="BirthDate" DataType="System.DateTime"  
    HeaderText="BirthDate" SortExpression="BirthDate" UniqueName="BirthDate" DataFormatString="{0:dd.MM.yyyy}"
</telerik:GridBoundColumn> 

Thanks,
Princy.
Tags
Grid
Asked by
Jouni
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or