Sorting Newbie question

Sorting Newbie question

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


Misled posted on Monday, February 12, 2007

I want to sort a list. The sortedbindinglist does it but I'm being a dummy here. Help please. Here's by list code:

Dim mList as AnyList = AnyList.getList(SomeID)

How do I use sortedbindinglist from here.....

Misled replied on Monday, February 12, 2007

All I have to do is ask a dumb question on here and then I figure it out immediately.....

Dim mList as AnyList = AnyList.getList(SomeID)

 

Dim sortedObjectAs New Csla.SortedBindingList(Of AnyListinfo)(mList)

sortedObject.ApplySort("AnyColumn", ComponentModel.ListSortDirection.Ascending)

Copyright (c) Marimer LLC