I am trying to use the SortedBindingList with a class that inherits from BusinessListBase, to provide two sorted views of the list.
I define
public class CompanyList : BusinessListBase<CompanyList, Company>{
private static CompanyList m_list; private static SortedBindingList<Company> m_sortByPhoneNo;...
When m_list is filled, I sort the list so:
m_sortByPhoneNo =
new SortedBindingList<Company>(m_list);m_sortByPhoneNo.ApplySort(
"PhoneNumber", System.ComponentModel.ListSortDirection.Ascending);...
However, when I call the .Find method on m_sortByPhoneNo, my app errors out because .SupportsSearching is false.
How do I need to structure these classes to ensure that sorting is supported?
Thx
Helen
Copyright (c) Marimer LLC