Getting IBindingList Property to sort by

Posted by Josh on Stack Overflow See other posts from Stack Overflow or by Josh
Published on 2010-04-23T19:10:49Z Indexed on 2010/04/23 19:13 UTC
Read the original article Hit count: 244

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about winforms

Related posts about ibindinglist