
datagrid updatecommand event args does not recieve updated information
I use this sample straight from MS and it doesn't work...
Can someone please tell me why.. I get the data from the
textbox correctly but the data does not reflect any
changes I've made...Why???
code for grid_updatecommand event
'extract the key field from the datakeys collection
Dim intAmenityID As Integer = grdAmenity.DataKeys
(e.Item.ItemIndex)
'extract the cell from the cells collection
Dim objCell As TableCell = e.Item.Cells(1)
' The TextBox is the 0th element of the Controls
collection.
Dim objBox As TextBox = CType(objCell.Controls(0),
TextBox)
' Extract the quantity from the box.
Dim strDescription As String = objBox.Text