Gridview rowupdating get old value
Notice that the programing is not running the event Row Updated any help?
Close() End If End Sub the problem is that the event row Updating is returning the old values so how can i get the new values for the update?
Grid View Cancel Edit Event Args) Handles dgv_Ref Tables. Edit Index = -1 Bind Data() End Sub Protected Sub dgv_Ref Tables_Row Command(By Val sender As Object, By Val e As System.
Grid View Command Event Args) Handles dgv_Ref Tables.
Arid Number, but it showing old value, because after new value I will update the [email protected] Ghafoor - I'm not really sure that I understand completely what you are trying to achieve.
actually dear, when I debug the project, the value comes from grid are old. because I want to insert new value in database that I have entered before pressing update My problem is, when I enter new value after pressing edit button, as I press update, it show me new value at property dao.
When I click edit on the grid and change the value of the textbox and click update the label will just display the original value of the textbox. "When I click edit on the grid and change the value of the textbox and click update the label will just display the original value of the textbox." So lets say there is "test" in the textbox originally and then I edit it to "asd" then click update.
Row editing and Row canceling editing working fine; but when I press update after changing the value in textbox, it show the old value not that value that I have change. Are you trying to save your old values and then continue with the updating of the Grid View with the new values? with reference to the image on the top that I have shared, as I press edit, it enable the complete row to modify the contents, and also shows two buttons update and cancel as second row in the above image.
How do I get the old values in a gridview row in the row_updating event? Please help me with writing a Row Updating function in C#, I don't know how to grab the current field's value and also get the old value for one of keys (which is Project Name for editing) of the selected row. the idea wa to don't allow binding the grid view after a post back.