G
Guest
There is an sample class CustomerList to implement the interface IBindingList
in MSDN.
But it dosen't have codes for followings to show how to sort the collection.
Can you provide codes to to it?
Thanks
Keith
PropertyDescriptor IBindingList.SortProperty
{
get { throw new NotSupportedException(); }
}
void IBindingList.AddIndex(PropertyDescriptor property)
{
throw new NotSupportedException();
}
void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection
direction)
{
throw new NotSupportedException();
}
int IBindingList.Find(PropertyDescriptor property, object key)
{
throw new NotSupportedException();
}
void IBindingList.RemoveIndex(PropertyDescriptor property)
{
throw new NotSupportedException();
}
void IBindingList.RemoveSort()
{
throw new NotSupportedException();
}.
in MSDN.
But it dosen't have codes for followings to show how to sort the collection.
Can you provide codes to to it?
Thanks
Keith
PropertyDescriptor IBindingList.SortProperty
{
get { throw new NotSupportedException(); }
}
void IBindingList.AddIndex(PropertyDescriptor property)
{
throw new NotSupportedException();
}
void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection
direction)
{
throw new NotSupportedException();
}
int IBindingList.Find(PropertyDescriptor property, object key)
{
throw new NotSupportedException();
}
void IBindingList.RemoveIndex(PropertyDescriptor property)
{
throw new NotSupportedException();
}
void IBindingList.RemoveSort()
{
throw new NotSupportedException();
}.