Gridview Sorting

Posts   
 
    
Vinny
User
Posts: 2
Joined: 13-Feb-2008
# Posted on: 13-Feb-2008 17:45:32   

I am trying to locate and set the IBindingList.SupportsSorting property so that my .NET Gridview control will do column sorts. A code snippet would be great! I am using the SelfServicing template. Is there also a property to set that would allow the paging to function on the same GridView?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 14-Feb-2008 04:00:42   

Hi Vinny,

Entity collection implements _IBindigList _trough its _DefaultView _object. As far as I know the entity collections are sortable by default.

If your GUI is ASP.Net 2.0 you should go on _LLBLGenProDataSource _(Ref: LLBLGenPro Help - Using the generated code - SelfServicing - Databinding at designtime and runtime - Databinding with ASP.NET 2.0).

If your GUI is WinForms or ASP.Net 1.x, please read LLBLGenPro Help - Using the generated code - SelfServicing - Databinding at designtime and runtime - Databinding with Windows Forms and ASP.NET 1.x.

Talking about IBindingList.SupportsSorting, please read this thread: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=8192

Is your GUI ASP.Net or WinForms? and What LLBLGenPro version are you using?

Hope helpful wink

David Elizondo | LLBLGen Support Team
Vinny
User
Posts: 2
Joined: 13-Feb-2008
# Posted on: 14-Feb-2008 19:11:23   

David,

Thanks for your help. I'm starting to find my way through the maze! Great product!