Sort Datagridviws that is bound to a List<T>

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi,

I have a daragridview bound to a List<T>. The problem I have is
that will not let me sort the grid by clicking on the headers of the
columns. How can I do?

Thanks
 
Hi,

I have a daragridview bound to a List<T>. The problem I have is
that will not let me sort the grid by clicking on the headers of the
columns. How can I do?

Thanks

I believe to make sorting work, you will need to create a list that inherits
from BindingList<T> and then overrides SupportSortingCore, ApplySortCore,
RemoveSortCore, etc, etc, etc.
 
Back
Top