dating regina sask - Rowupdating in gridview

In this article we will look at how to update or delete a record in a database table using a Grid View control.

rowupdating in gridview-75

Edit Index = -1 'Bind data to the Grid View control. Sql Command Dim sql As String Dim reader As System.

Sql Command Dim sql3 As String Dim reader3 As System.

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.

In my case this was happening because I was binding to a List of custom objects.

Note A common mistake that a lot of people do is that they perform a databind each and every-time the Page_Load method is called.

This will lead to problems like "Grid View does not show updated values", "Grid View looses values changed by user". In your Page_load, this is typically only inside a block where you check to make sure that Page_Load is not being called during a post-back call.

Every one can use it to compare the new value with old ones.

After searching long and hard I found a great article that solved my issue.

You'll be able to ask questions about coding or chat with the community and help others.

Tags: , ,