I am still not able to retrieve new value from edit form template. Please help.
If e.CommandName = "Update" Then
Try
If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
Dim OprCount As TextBox = CType(editedItem.FindControl("txtOprCount"), TextBox)
Dim strRcvCount As String = OprCount.Text
MsgBox(strRcvCount)
Exit Sub
Dim strUserName As String = Session("USERNAME")
Dim strSYSID As String = rgRtnDetail.MasterTableView.DataKeyValues(e.Item.ItemIndex)("SYS_ID")
strSQlData = "EXECUTE SP_IB_RETURNS_DET_UPDATE '" & strUserName & "' ,'" & strSYSID & "', '" & strRcvCount & "'"
Dim errcode As String
Dim nRecCount As Integer
Dim myCommand As New SqlCommand(strSQlData, oConn)
Dim da = New SqlDataAdapter(strSQlData, oConn)
Dim ds = New DataSet
da.Fill(ds, "ERROR")
dt = ds.Tables(0)
nRecCount = dt.Rows.Count
Response.Redirect(Request.RawUrl)
End If
Catch ex As Exception
RadWindowManager1.RadAlert("Problem Updating the Record!", 250, 150, "ERROR", "")
End Try
End If