更新的代码?
更新数量的代码要怎么写?
Dim i
Dim table As DataTable = Session("shoppingbag")
For i = 0 To table.Rows.Count - 1
table.Rows(i)("quantity") = DataGrid1.Items.Item(0).Cells(3).Text
Next
Session("shoppingbag") = table
Me.DataGrid1.DataBind()
DataGrid1.Items.Item(0).Cells(3).Text不对。要怎么写?