S
Steve Hiemstra
Hi All,
I have to display columns from multiple database tables in a grid. I have
been able to 'query' back a single DataTable using a custom SELECT (so I
have this DataTable in a DataSet). The DataSet binds to the grid fine.
The problem is in the UPDATE. I would like to the use the
DataSet.Update( ), but because I have a 'composite' table (and ADO.NET
requires a DataTable for each corresponding DataTable in the database) I
would need to 'split' my DataTable into separate DataTables (split off the
'like' columns and preserve the 'state' of the data).
I noticed the Select( ) method in DataTable. Maybe I could use that.
Using a separate custom UPDATE SQL statement for each changed row seems the
worst case...
Any ideas?
SteveH
I have to display columns from multiple database tables in a grid. I have
been able to 'query' back a single DataTable using a custom SELECT (so I
have this DataTable in a DataSet). The DataSet binds to the grid fine.
The problem is in the UPDATE. I would like to the use the
DataSet.Update( ), but because I have a 'composite' table (and ADO.NET
requires a DataTable for each corresponding DataTable in the database) I
would need to 'split' my DataTable into separate DataTables (split off the
'like' columns and preserve the 'state' of the data).
I noticed the Select( ) method in DataTable. Maybe I could use that.
Using a separate custom UPDATE SQL statement for each changed row seems the
worst case...
Any ideas?
SteveH