hiya Frans,
You're right.
It means that I have an issue :-(
I have a datagridView. (this datagridView is not populated via the IDE)
There is a top level bindingSource, let's just call it "tblReturnsBindingSource"
tblReturnsBindingSource.datasource = tblReturnCollection1
Then, we have the "child" binding source...which is actually bound to the datagridview.
"tblReturnsProductsBindingSource"
tblReturnsProductsBindingSource.datamember = tblReturnProducts //THIS IS WHAT i NEED TO FILTER
tblReturnsProductsBindingSource.dataSource = tblReturnsBindingSource
So, I want to filter the "child" entity collection, namely the "tblReturnProducts"
Therefore, I believe that my filter predicate code is OK, but WHAT do I apply it to?
Please let me know if i can clarify anything.
IPredicateExpression filtReturnProductCondition = new PredicateExpression();
filtReturnProductCondition.Add(PredicateFactory.CompareValue(TblReturnProductsFieldIndex.ReturnProductCondtionId, ComparisonOperator.Equal, (int)cboReturnProductCondition.SelectedValue));
filtReturnProductCondition.Add(PredicateFactory.CompareValue(TblReturnProductsFieldIndex.ReturnId, ComparisonOperator.Equal, _selectedReturnId));
etc,
etc
dgvReturns.DataSource = tblReturnsProductsBindingSource;