datagrid sort Date column as string

M

mkhmer

Hello,

I got a column in datagid with 'mm/dd/yyyy' date format
The problem is that this column is sorted as string that make:

1/1/2006 to come earlier than 2/2/2004 for ascending sort.

Any idea of this??? I am using DataFormatString="{0:mm/dd/yyyy}"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top