Sorting in DataGrid bound to a CollectionBase Derived Object

  • Thread starter Thread starter Cbk Menon
  • Start date Start date
C

Cbk Menon

Hi,

I have a Winforms DataGrid, bound to a CollectionBase Derived Object. I
can see objects and their properties as columns.

How can I have Sorting functionality in this case ?

TIA
Cbk Menon
 
Hi,

You should most likely wrap the collection into a class implementing the
IBindingList interface. Then you will probably have to implement sorting
yourself as the CollectionBase is not capable of sorting by an arbitrary
property.
 
Back
Top