W
William Ryan eMVP
Just change your datasource to the Parent datatable instead of setting it to
the dataset and don't set any other binding properties.
If you have a Dataset (myDataset) with two tables (tblOne and tblTwo linked
by DataRelation drL) then just do this;
myParentGrid.datasource = myDataSet.Tables["tblOne"];
myChildGrid.DataSource= myDataSet.Tables["tblTwo"];
That should do it for you.... (IF this is a web grid, then call databind
after each one but that should be it).Of course you may still need to set up
a binding context and all depending on what else you are binding..but to
solve your immediate problem, this should do it for you if I understand your
goal correctly.
Cheers,
Bill
the dataset and don't set any other binding properties.
If you have a Dataset (myDataset) with two tables (tblOne and tblTwo linked
by DataRelation drL) then just do this;
myParentGrid.datasource = myDataSet.Tables["tblOne"];
myChildGrid.DataSource= myDataSet.Tables["tblTwo"];
That should do it for you.... (IF this is a web grid, then call databind
after each one but that should be it).Of course you may still need to set up
a binding context and all depending on what else you are binding..but to
solve your immediate problem, this should do it for you if I understand your
goal correctly.
Cheers,
Bill