Results 1 to 3 of 3

Thread: [RESOLVED] WPF - XAML - XamDataGrid - How to sort by Date Field?

Threaded View

  1. #3

    Thread Starter
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: WPF - XAML - XamDataGrid - How to sort by Date Field?

    Hey dee-u. Actually i'm not Binding or applying format because i didn't want to affect how the date is being displayed i want to keep showing format "DD/MM/YYYY" but i want sorting to sort correctly according to date (the format needed for this would be "YYYYMMDD"), is this possible using your code? Showing a date format but sort using another?
    This grid comes with Infragistics.

    EDIT:

    It's resolved now, i had to use EditAsType using type Datetime. For some reason this field was formatted as String and that's why it was being sorted by the grid like a String.
    Last edited by jcis; Jan 29th, 2014 at 08:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width