Gridview rowupdating get old value

Posted by / 18-May-2018 09:06

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. It's an event designed to give you an opportunity to validate the input and prevent the changes going forward if need be. thank you :) event is fired the changes have not yet been committed back to the datasource. I am suppose to take the new values on row Updating command and fire it to database. I wrote an another page with little functionality, and it is working fine. Manager Protected Sub Page_Load(By Val sender As Object, By Val e As System. I am anable to understand what is wrong with my code. Partial Public Class Refernce Page Inherits System. 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.

hello my problem was that my gridview editable controls heep their old values. this is due to the grid view binding in the page_load method after every post back. A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source. Protected Sub Grid View1_Row Updating(By Val sender As Object, By Val e As Grid View Update Event Args) Handles Grid View1. To Upper = "ADD" Then Dim txt_Disp Seq As Text Box = Direct Cast(dgv_Ref Tables. Find Control("_txt Disp Seq"), Text Box) Dim txt_Name As Text Box = Direct Cast(dgv_Ref Tables. Find Control("_txt Name"), Text Box) Dim Chk_Is Active As Check Box = Direct Cast(dgv_Ref Tables. Find Control("_chk Is Active"), Check Box) obj BORefered Table = BO. Added By = CType(Session("User Profile"), BOUser Profile).

gridview rowupdating get old value-22gridview rowupdating get old value-46gridview rowupdating get old value-27

I was just testing if I will get the changed value out of the textbox when updating with no luck.

One thought on “gridview rowupdating get old value”