Trying to add a filter for the list. I have a textbox and an event that does this when the textbox text changes:
this.objectListView1.ModelFilter = TextMatchFilter.Contains(this.objectListView1, filterString.Text);
When I key in a character into the textbox I am getting the following error:
System.ObjectDisposedException: 'The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.'
I am using Entity Framework to get the data for the list view. I fill my data when the form with the listview loads using a method for that.
What is causing the error? How do I correct this?