Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > datagrid sort Date column as string

Reply
Thread Tools

datagrid sort Date column as string

 
 
mkhmer
Guest
Posts: n/a
 
      07-03-2006
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}"



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Toolbox - Table Sort utility - Sort on column's @intattribute Rick Javascript 0 06-08-2010 11:44 PM
Datagrid sort date column as string mkhmer ASP .Net Datagrid Control 1 07-03-2006 04:59 PM
datagrid sort string (is representation of date) as a DATE cindy ASP .Net Datagrid Control 1 03-31-2006 09:29 AM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. Navin ASP General 1 09-09-2003 07:16 AM



Advertisments