Ok, I found what I was looking for:
http://weblogs.asp.net/paulballard/a...21/420099.aspx
:-)
"Pieter" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Thanks, it seems I must be able to find what I am looking for there.
> I made a Custom Collection Class that inherited from BindingList(Of T),
> but it still doesn't sort when clicking on the column-headers...
>
> "Bart Mermuys" <(E-Mail Removed)> wrote in message
> news:eIS%(E-Mail Removed)...
>> Hi,
>>
>> "Pieter" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi,
>>>
>>> I made a Collection-class that inherits from
>>> System.Collections.ObjectModel.Collection(Of T), but when I use this
>>> collection as a DataSource of a DataGrid or a DataGridView, it isn't
>>> sorted when the user clicks on the column-headers.
>>>
>>> Which Interface do I have to implement for this? And how do I do this?
>>> any sample codes? Or should I use another Collection-class to inherit
>>> from?
>>
>> Have a look at generic BindingList<T>.
>>
>> HTH,
>> Greetings
>>
>>>
>>> Thanks a lot in advance,
>>>
>>> Pieter
>>>
>>
>>
>
>