Getting IBindingList Property to sort by
- by Josh
I've got a class called DatagridBoundList that implements CollectionBase and IBindingList. The implementation of IBindingList.ApplySort looks like this so far:
void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection direction) {
throw new NotSupportedException();
}
I'm binding the DatagridBoundList to a DataGridView (winforms). When I reflect over the property parameter, I can't seem to find the name of the actual property that the list needs to be sorted by. What's the trick to finding out the name of the property to sort by?