I have placed fields on form using datadesigner. I have a parent, child and childchild table. When I navigate the parent, naturally the child and childchild follows. Due to certain requirements, I changed the bindings of the childchild fields to point to its true table. Of course, when I navigate the parent, the childchild fields will not follow anymore.
Now I place this code in the childbindingsou rce currentchanged event to let the childchild fields follow again...
dim drv as datarowview = directcast(chil dbindingsource. current, datarowview)
childchildbindi ngsource.filter = "PrimaryKey = '" & drv("ForeignKey ") & ""'"
My problem is when I navigate the parent and it has no corresponding child data. The child fields follow the parent and will of course be blank just like EndOfFile. But what will I do to the childchildbindi ngsource so that the childchild fields will also be blank and point to the EndOfFile?
Hoping anyone can enlighten me.
Now I place this code in the childbindingsou rce currentchanged event to let the childchild fields follow again...
dim drv as datarowview = directcast(chil dbindingsource. current, datarowview)
childchildbindi ngsource.filter = "PrimaryKey = '" & drv("ForeignKey ") & ""'"
My problem is when I navigate the parent and it has no corresponding child data. The child fields follow the parent and will of course be blank just like EndOfFile. But what will I do to the childchildbindi ngsource so that the childchild fields will also be blank and point to the EndOfFile?
Hoping anyone can enlighten me.
Comment