Updating datatable row

03 Jan

When a row is marked for deletion, its Row State property is set to Delete.

Neither Delete nor Remove should be called in a foreach loop while iterating through a Data Row Collection object.

Instead, when the Data Adapter encounters a row marked as Deleted, it executes its Delete Command method to delete the row at the data source.

Updating a cell or a whole without reloading the page of the table itself using AJAX is not that hard.

However, in lack of proper documentation or tutorials or examples users find difficult to implement this.

For instance you could write the following code to update the column "Foo" to be the value str Verse Code above instantiates a Data Row.

Where "dt" is a Data Table, you get a row by selecting any column (I know, sounds backwards).