BindingList<T>.SortPropertyCore Propriedade
Definição
Obterá o descritor de propriedade usado para classificar a lista se a classificação for implementada em uma classe derivada; caso contrário, retornará null.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; }
member this.SortPropertyCore : System.ComponentModel.PropertyDescriptor
Protected Overridable ReadOnly Property SortPropertyCore As PropertyDescriptor
Valor da propriedade
O PropertyDescriptor usado para classificar a lista.The PropertyDescriptor used for sorting the list.
Comentários
SortPropertyCore retorna null por padrão porque a BindingList<T> classe não fornece uma implementação base de classificação.SortPropertyCore returns null by default because the BindingList<T> class does not provide a base implementation of sorting. Para habilitar a classificação, derive uma classe de BindingList<T> e:To enable sorting, derive a class from BindingList<T> and:
Substituir ApplySortCore e implementar classificação.Override ApplySortCore and implement sorting.
Substituir RemoveSortCore e implementar a remoção de classificação.Override RemoveSortCore and implement sort removal.
Substitua SupportsSortingCore e defina SupportsSortingCore como
true.Override SupportsSortingCore and set SupportsSortingCore totrue.Opcionalmente, substitua o SortPropertyCore para retornar o PropertyDescriptor usado para classificação.Optionally, override the SortPropertyCore to return the PropertyDescriptor used for sorting.