In the following tutorial, I will show you different techniques you can use to display command buttons in Grid View. Command Name Dim current Row Index As Integer = Int32.
For this tutorial I am using Microsoft famous sample database Northwind. Also make sure you are setting Grid View Data Key Fields property to the Primary Key column of the Product Table such as Product ID.
Yes, I did put the breakpoint at the Row Updating line (and not in the function).
You have to make sure that you aren't setting your Grid View's data when it is not postback.
In particular, we'll build an example that closely mimics the web-based email client user interface.