M
Massimo
I have a database with two tables, with a foreign relation between them; the
schema is like this:
Table 1 {A, B, C, D, E}
Table 2 {E, F}
E is the primary key for table 2, and is used as a foreign key in table 1.
Now, I have two DataSets (one for table 1 and the other for table 2), and
I'm trying to do some data binding in a winform, but I don't know how to
accomplish what I want; in the form, I have some EditBoxes bound to columns
of the first DataSet, and a ComboBox. I want the ComboBox to get its list of
elements from the second DataSet, and I also want the current selected item
to be bound to column E of the first DataSet, in order to automatically
update the column in the current row.
What is the right way to accomplish this, if there is one?
Thanks
Massimo
P.S.
I don't want code to manually fill the ComboBox and/or change the current
row when the selection is changed; I prefer data bindings, if there is a
good way to use them in this situation.
schema is like this:
Table 1 {A, B, C, D, E}
Table 2 {E, F}
E is the primary key for table 2, and is used as a foreign key in table 1.
Now, I have two DataSets (one for table 1 and the other for table 2), and
I'm trying to do some data binding in a winform, but I don't know how to
accomplish what I want; in the form, I have some EditBoxes bound to columns
of the first DataSet, and a ComboBox. I want the ComboBox to get its list of
elements from the second DataSet, and I also want the current selected item
to be bound to column E of the first DataSet, in order to automatically
update the column in the current row.
What is the right way to accomplish this, if there is one?
Thanks
Massimo
P.S.
I don't want code to manually fill the ComboBox and/or change the current
row when the selection is changed; I prefer data bindings, if there is a
good way to use them in this situation.