Rowupdating getting old values
In this tutorial we are searching for our Text Box controls txt Product Name and txt Unit Price.To get the Primary Key reference we can use the Data Keys collection of the Grid View. So what you need to do is store the data source (maybe in Session) and only bind rebind the data when you absolutely need to (Like during the Is Not Post Back) Do you understand?
Add With Value("@pfirstname", str Last Name) If cn. Row Updating Dim str Person ID As String = Direct Cast(Grid View1. To String() Dim str Last Name As String = Direct Cast(Grid View1. So Grid View will put the appropriate row into the Edit Mode by assigning row number to its Edit Index property.All updated values are passed to the Stored Procedure.