B
Brian Link
This is what I get for trying to do things the ADO.NET way instead of
using plain ol ADO..
Anyway, I have two related tables. I've finally hooked em up so that
they're in synch, but now I need to be able to iterate through the
child table's rows, and I can't figure out how.
For instance, with a single table I can do thus (adding rows to a
treeview):
For i = 0 To DsEnt1.R_Relations.Count - 1
nd = tvClient.Nodes.Add(DsEnt1.R_Relations(i).Name_Last)
Next
But If there is a datarelation named "E_ClientR_Relations" in my
E_Client table, how come I can't do:
For i = 0 to DsEnt1.E_Client.E_ClientR_Relations.Count - 1
....
I can't seem to find the relation anywhere enumerated so I can loop
through it.
Brian Link, Minnesota Countertenor
using plain ol ADO..
Anyway, I have two related tables. I've finally hooked em up so that
they're in synch, but now I need to be able to iterate through the
child table's rows, and I can't figure out how.
For instance, with a single table I can do thus (adding rows to a
treeview):
For i = 0 To DsEnt1.R_Relations.Count - 1
nd = tvClient.Nodes.Add(DsEnt1.R_Relations(i).Name_Last)
Next
But If there is a datarelation named "E_ClientR_Relations" in my
E_Client table, how come I can't do:
For i = 0 to DsEnt1.E_Client.E_ClientR_Relations.Count - 1
....
I can't seem to find the relation anywhere enumerated so I can loop
through it.
Brian Link, Minnesota Countertenor