View Single Post
  #1 (permalink)  
Old July 24th, 2008, 10:09 PM
sandyl sandyl is offline
Registered User
Join Date: Jul 2008
Location: Annandale, va, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sandyl
Default Sorting Difficulties when implementing Custom Obj

Hi, I've read this book and felt excited about the clever pattern being used. So, I started to implemented Custom Object (ObjectDataSource) for better performance(and of course OOP style) rather than Dataset/DataTable. However, I have difficulties in making the sort function work in my GridView with this approach. I've created Compare() method which implemented IComparable interface to achieve this. I could make it works if I don't use Paging. But I do want to use Paging.

I've tried to look for a solution from the internet. But, still cannot find one satisfied.

Any help on this will be much appreciated.