I have created a class that implements IBindingList, which sucessfully
uses the sort options. This class works very well and can be bound to
a DataGridView, with column header clicking nicely automatically
sorting the data.
I have created a new control that inherits from ListView. I would
like to extend ListView such that I can bind to it, i.e.
NewListView.DataSource = new IBindingListClass. How do I do this?
Should I implement another interface in the NewListView control?
An alternative would be to just create an instance of
IBindingListClass and call the ApplySort method when the user clicks
on the column headers, but I cannot seem to create a
PropertyDescriptor, which is requried by PropertyDescriptor?
Thanks.
JB - 14 Apr 2007 20:46 GMT
BindSource Class does the trick.
> I have created a class that implements IBindingList, which sucessfully
> uses the sort options. This class works very well and can be bound to
[quoted text clipped - 12 lines]
>
> Thanks.