Sorts the list based on a property descriptor and a sort direction.
| C# | Visual Basic |
public void ApplySort( PropertyDescriptor property, ListSortDirection direction )
Public Sub ApplySort ( _ property As PropertyDescriptor, _ direction As ListSortDirection _ )
- property (PropertyDescriptor)
- The PropertyDescriptor to sort by.
- direction (ListSortDirection)
- One of the ListSortDirection values.
If items are added or removed, these items are placed in the order of the sort.
When you call this method, you should raise a ListChanged event with the Reset enumeration.