The problem I have is that when I click on 'Edit', then change some values then click 'Update', I can only get the old values.
All of the other posts I have read have mentioned the Grid View being bound on post back or within a Row Data Bound event but I'm pretty sure that I am not doing that.
There are multiple ways in which one can get the data from the current row that is being edited in a Grid View. Using "Extract Values From Cell": This is an easy way to get all the values from the current row. Find Control, I only get unedited values, those initially displayed from database, not the actual values displayed on screen. Rows(index) Dim str Add As String = "" str Add = (CType(row. The problem is: when I retrieve data using Grid View. Grid View Command Event Args) Handles gv Autorizzazioni. Command Name = "Crea Autorizz") Then Dim str Per Insert As String = "" Dim index As Integer = Convert. Command Argument) Dim row As Grid View Row = gv Autorizzazioni. Protected Sub gv Autorizzazioni_Row Command(By Val sender As Object, By Val e As System. Data Bind() End With End Sub Private Sub gv Test_Row Editing(By Val sender As Object, By Val e As System. On Row Updating I can now retrieve new values using "New Values" property for each field I need, then cancel updating and use new values for my purposes (here, build a string to use in a sp to insert a new record based on new values): Protected Sub gv Autorizzazioni_Row Updating(By Val sender As Object, By Val e As System.
before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).