Add row from Datagrid

  • Thread starter Thread starter shanesj
  • Start date Start date
S

shanesj

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?
 
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
 
Back
Top