Add row from Datagrid

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?
 
M

Marc R.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top