How to sort rows in descending order?

2 posts, 0 answers
  1. Saad
    Saad avatar
    82 posts
    Member since:
    Oct 2008

    Posted 04 Dec 2008 Link to this post

    I have made a dataTableAdapter and defined it as a source for my radGrid. Everything is fine, I am getting all columns from my table but have changed datetime format using DATEADD(dd, 0, DATEDIFF(dd, 0, DateTime)).  Now i just need to sort all my records in descending order (thats it latest ones first). So I have tried sorting it in my query using Order By clause and through sortExpressions in radGrid as well. But its not working...please help me!
  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 08 Dec 2008 Link to this post

    Hello saadi,

    Which field are you using in order by clause or grid sorting expressions? Is it the original date field there or the formatted one? I suggest that you use the original field in this case.

    Additionally, you can review the below topics for more information about grid sorting:

    Check it out and let me know how it goes.

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top