The solution is similar to that one. You have to iterate the grid rows and update the Dataset accordingly. The C# code I showed for that, would be in VB:
If (Page.IsValid)
Dim ds As DataSet = CType(Session["data"], DataSet)
Dim item As DataGridItem
//Iterate and apply changes to the dataset
For Each item In DataGrid2.Items
Dim mytxt As TextBox = CType(TextBox, item.FindControl("myTxtBox"))
// We may want to check if something has actually changed here...
ds.Tables(0).Rows(item.ItemIndex)("myfield") = mytxt.Text;
Next
// Perform the update.
sqlDataAdapter1.Update(ds);
// Reload the grid.
DataGrid2.DataBind();
End If
This was first published in April 2004