Start Gridview rowupdating not working

Gridview rowupdating not working

Listing 4 is not a Command it means we have to instantiate it with a label as in Grid View's normal mode when each cell text of Grid View's rows is displayed in label.

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.

The HTML code for the Grid View is as follow : Till now everything looks fine but the problem arises when you run this application.

This solution provided in this article will be the best and probably the only way to make it all possible.

Protected Sub gv Autorizzazioni_Row Command(By Val sender As Object, By Val e As System.

So I have my Gridview with Data Source set to a Data Table on page Load event : In the Click event of the button I want to retrieve current values of the controls, as displayed on Web page after user's actions, and pass them to my sp as a comma-separated string. Is Null Or Empty(str Add) = False Then str Per Insert = str Per Insert & str Add & "," '..so on to add values to string What to do to retrieve edited values? I also tried setting Edit Index to the index of "pseudo-edited" row, just before your code: Thanks, yousuf... I think Edit Index is nothing, because the whole Edit thing is never raised.

Free counters Added on January 19,2012 Follow Me @vmsdurano A bit About Me Disclaimer The opinions expressed herein are my own personal opinions and does not represent the opinions of my employers.