GridView Sorting

GridView Sorting

Old forum URL: forums.lhotka.net/forums/t/4873.aspx


Michael Hildner posted on Tuesday, May 20, 2008

Greetings,

I'm doing my first asp:GridView sorting. Got it working handling the Sorting event and a SortedBindingList. Just wondering if this is the recommended way to go about it, or if there are better ways?

Just looking for confirmation or not.

Using VS 2005, CSLA 2.1.4

Thanks,

Mike

JoeFallon1 replied on Wednesday, May 21, 2008

Sure.

That is a good way to do it.

If you need to sort on more than 1 column it won't work though. I use the ObjectListView in CSLAContrib instead for that purpose.

Joe

 

Michael Hildner replied on Wednesday, May 21, 2008

Thanks Joe,

I'll check out the ObjectListView. Don't have a requirement now for multiple column sorting, but may soon.

Regards,

Mike

JoeFallon1 replied on Wednesday, May 21, 2008

For CSLA 3.5 I think Rocky may be deprecating the Sorted and Filtered Binding lists. After all since LINQ exists, you should not need them anymore. And LINQ should handle multi-column sorting just fine too.

Joe

 

Michael Hildner replied on Wednesday, May 21, 2008

Thanks for the info Joe,

I need to look into all of that. A little behind on the CSLA versions. Bought all the books, just haven't found time to get up to speed yet.

Thanks again,

Mike

Copyright (c) Marimer LLC