ASP.NET GridView Sort?

Posted by Curtis White on Stack Overflow See other posts from Stack Overflow or by Curtis White
Published on 2010-05-31T21:07:06Z Indexed on 2010/05/31 21:13 UTC
Read the original article Hit count: 357

I'm performing a query with a sort in the Selecting event of the LinqDataSource. I'm then casting my query to a list and assigning it to the result. I'm using this data source in an ASP.NET gridview.

I can see the list is sorted but when the ASP.NET gridview does not seem to be respecting the sort order. How can I get the gridview to respect my default sort order?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about linq-to-sql