For this situation, many developers use invisible columns (Hidden columns) in the gridview to identify that row.
Now you can ask questions directly to me on my new site ASPForums.
A datakey represents the primary key field or field of a record that can uniquely identify it in a data-bound control. Row Index represents the index of the particular row.
Many a times in our applications we use primary keys to get control of the particular record in the gridview.
In order to develop a test web form create a new web site in VS. Set various properties of the Bound Fields as shown in the following table: Here, we call Bind Grid() method if the web form is being served as a result of first request.
The Bind Grid() method is our own function that we will create later on.