Assigning/Updating values to DataTable

Tech-Archive recommends: Fix windows errors by optimizing your registry




in VStudio 2005 visual basic.net

How do I change a single value in a single cell in a datatable that already
exists.

E.g.,

Dim MyTable As New DataTable

<code that reads from a db and places it into MyTable>

MyTable.Rows(0)(0) = <whatever> <- this, obviously, doesn't work, but
what will?

More specifically, lets say that I need to place 1 into row 0 column 0

Will the same code work if the Table is currently all null values?

Thanks

Jeff




--
Posted via a free Usenet account from http://www.teranews.com

.