BindingListView
BindingListView copied to clipboard
Support for filter from string expression
I'm attempting to use BindingListView with DataGridViewAutoFilter, but it seems that it uses string expression filters, therefore whenever I try AutoFilter, it throws an exception which appears to come from your code:
string IBindingListView.Filter
{
get
{
return Filter.ToString();
}
set
{
throw new NotSupportedException("Cannot set filter from string expression.");
//TODO: Re-instate this line once we have an expression filter
//Filter = new ExpressionItemFilter<T>(value);
}
}
It looks like you ran into some un-finished work. Sorry - I am not the original author of this code, I simply updated it to the latest version of Visual Studio and put it here on GitHub.
If you figure out how you'd like to change it to make this work, I'll be glad to pull your changes in to this repository.