How to update datatable in memory without dataadapter?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

A datatable is returned from a .NET method. Since there is no dataadapter
in this case, how can I update a column for all the rows in that datatable?
 
A datatable is returned from a .NET method. Since there is no
dataadapter in this case, how can I update a column for all the rows
in that datatable?

Do you have access to the database?
 
No. The datatable is the one returned by
DbDataSourceEnumerator.GetDataSource. So, I just want to update the
datatable in memory.
 
No. The datatable is the one returned by
DbDataSourceEnumerator.GetDataSource. So, I just want to update the
datatable in memory.

If you do not have access to the data - you cannot send updates back to the
DB.

A datatable is a disconnected representation of the database. It has no
access to the underlying data source.
 
Yes and I don't want to update any datasource in this case (actually don't
know the datasource). I have resolved the issue by using for loop and assign
value to column.
 
Back
Top