BindingListView icon indicating copy to clipboard operation
BindingListView copied to clipboard

Support for filter from string expression

Open prdufresne opened this issue 8 years ago • 1 comments

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);
            }
}

prdufresne avatar Apr 03 '17 03:04 prdufresne

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.

waynebloss avatar Apr 04 '17 18:04 waynebloss