Code:
Public Sub fillItemSearch() Dim ProdDBfill As New linqFillItemSearchDataContext frmSearchItems.dgvSearchItems.DataSource = ProdDBfill.fillItemSearchDGV.ToList End Sub
If so, how do I go about setting the IBindingListVie w.SupportsFilte ring to True?
Also, when I set the Column Type of the dgv to DataGridViewAut oFilterTextBoxC olumn the app returns a "The DataSource property of the containing DataGridView control must be set to a BindingSource." error. Obviously, at least to me, it is bound both early and late, so how does it "forget" that it IS bound? It only throws this error when I try to use the AutoFilter on the columns of the dgv. It works fine when I have the column type set to DataGridViewTex tBoxColumn.
So... From that I would surmise that since to support filtering, the BindingSource must be bound to an IBindingListVie w with a SupportsFilteri ng property, that this type of object doesn't possess this property. HOWEVER, there is an error trap that traps this specific error and returns the message "DataSource is not an IBindingListVie w or does not support filtering", which is not being thrown. "Curiouser and curiouser".
As always, any help, is greatly appreciated...
KK