you need to create your relation before binding the dataset to the grid, and
went you do so, You need to use the datatable that is under your parent
table
-master table
-child table <----- Bind you grib on that one so, as soon you click
on the parent table, the other grid will update automaticly.
I hope that halp you
"shanesj" <sh*****@noemail.noemail> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
I am trying to add a row from a datagrid that has a foreign key field that
links the datagrid to the main form. When I add a row with the datagrid,
the foriegn key field does not get populated. How can I add the value to
the field after adding the row?