G
Guest
Hi,
I am using VS2003.
When using the design enviroment to create a data Adapter wth a single
table, no problems but...
I used a data adapter to join three 1 to 1 tables. First thing I noticed is
that it immediately cross joins all the tables(?) . I had to manually create
the joins which is ok but what's the point if it's meant to be a 'designer'.
I then finished the Da by clicking Finish. (It failed to create Update,
delete & Insert commands). From this I generated a data set, filled it &
bound it to a data grid. The grid displayed all required columns from the 3
tables fine.
I put an daMyDataAdapter.Update(dsMyDataSet); into the click event of the
datagrid to test it.
When I change a value on the data grid then click it, I get an error:
Additional information: Update requires a valid UpdateCommand when passed
DataRow collection with modified rows.
What am i doing wrong? Are these vs2003 bugs that I must work around?
Thanks for any suggestions in advance
Ant
I am using VS2003.
When using the design enviroment to create a data Adapter wth a single
table, no problems but...
I used a data adapter to join three 1 to 1 tables. First thing I noticed is
that it immediately cross joins all the tables(?) . I had to manually create
the joins which is ok but what's the point if it's meant to be a 'designer'.
I then finished the Da by clicking Finish. (It failed to create Update,
delete & Insert commands). From this I generated a data set, filled it &
bound it to a data grid. The grid displayed all required columns from the 3
tables fine.
I put an daMyDataAdapter.Update(dsMyDataSet); into the click event of the
datagrid to test it.
When I change a value on the data grid then click it, I get an error:
Additional information: Update requires a valid UpdateCommand when passed
DataRow collection with modified rows.
What am i doing wrong? Are these vs2003 bugs that I must work around?
Thanks for any suggestions in advance
Ant