BindingList<T>::SortPropertyCore Property
.NET Framework (current version)
Gets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns null.
Assembly: System (in System.dll)
protected: property PropertyDescriptor^ SortPropertyCore { virtual PropertyDescriptor^ get(); }
Property Value
Type: System.ComponentModel::PropertyDescriptor^The PropertyDescriptor used for sorting the list.
SortPropertyCore returns null by default because the BindingList<T> class does not provide a base implementation of sorting. To enable sorting, derive a class from BindingList<T> and:
Override ApplySortCore and implement sorting.
Override RemoveSortCore and implement sort removal.
Override SupportsSortingCore and set SupportsSortingCore to true.
Optionally, override the SortPropertyCore to return the PropertyDescriptor used for sorting.
.NET Framework
Available since 2.0
Available since 2.0
Show: