Home
> Uncategorized > Fix to SortableBindingList for VB.NET
Fix to SortableBindingList for VB.NET
The typical example of the SortableBindingList in VB.NET (http://www.tech.windowsapplication1.com/content/sortable-binding-list-custom-data-objects) does not work when the datasource is an Collection Of T, rather than a List Of T.
A Fix I used was this;
Sub New(ByVal list As ICollection(Of T))
MyBase.New(New List(Of T)(list))
End Sub
Then the cast in ApplySortCore works …
Categories: Uncategorized
Comments (0)
Trackbacks (0)
Leave a comment
Trackback