You should really use a comparer to do sorting

Ben Kubicek replied to Bo Friesen at 04-Mar-08 02:54

I wrote a similar article on the codeproject site.  Using objects with a generic list and binding them with an object datasource. If you create a comparer you can use that for sorting.

http://www.codeproject.com/KB/aspnet/GridViewObjectDataSource.aspx

 

Ben




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Article Discussion: ASP.NET - Sorting a GridView Bound to a Custom Data Object - Bo Friesen  12-Feb-08 1:17:27 PM
      You should really use a comparer to do sorting - Ben Kubicek  04-Mar-08 2:54:02 PM
          Thank You - Bo Friesen  04-Mar-08 5:55:21 PM
View Posts