Hello everybody,
I have a dataset containing two related tables :
Master,
Detail.
I have used the designer to create a form
with two DataGridView.
I want to filter parent records so that only those
which don't have child records are listed.
In the Form_Load, I have created a DataView (dv)
with filter : "ISNULL(Count(Child.ID),0)=0" (where ID
is the primary key of Detail).
I then Fill the datatables : Master, Detail.
I then set the Master DataGridView's datasource property to dv.
The problem that I have :
When the Form is launched, the filtering is correctly done.
Now, if I had a row in Master, then add a child row to Detail,
the parent row in Master is still there !!!
Does the rowfilter only work at Fill time ?
It doesn't work with creations/deletions in Master !!
Is this a known bug ?
I would prefer have this solution work that the workarounds
described in the article Q321896 !!