datagrid sort Date column as string

Discussion in 'ASP .Net Datagrid Control' started by mkhmer, Jul 3, 2006.

  1. mkhmer

    mkhmer Guest

    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}"
     
    mkhmer, Jul 3, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,271
    Michael Borgwardt
    May 30, 2004
  2. cindy

    datagrid sort string (is representation of date) as a DATE

    cindy, Mar 31, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    207
    Steven Cheng[MSFT]
    Mar 31, 2006
  3. mkhmer

    Datagrid sort date column as string

    mkhmer, Jul 3, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    135
    Bruno Alexandre
    Jul 3, 2006
  4. Navin
    Replies:
    1
    Views:
    699
    Ken Schaefer
    Sep 9, 2003
  5. Rick
    Replies:
    0
    Views:
    151
Loading...

Share This Page