BindingList<T>.SortPropertyCore Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns null
.
protected:
virtual property System::ComponentModel::PropertyDescriptor ^ SortPropertyCore { System::ComponentModel::PropertyDescriptor ^ get(); };
protected virtual System.ComponentModel.PropertyDescriptor SortPropertyCore { get; }
protected virtual System.ComponentModel.PropertyDescriptor? SortPropertyCore { get; }
member this.SortPropertyCore : System.ComponentModel.PropertyDescriptor
Protected Overridable ReadOnly Property SortPropertyCore As PropertyDescriptor
Property Value
The PropertyDescriptor used for sorting the list.
Remarks
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.