16
Answers

How to find the row id of selected Gridview Row in Asp.net

Bineesh  VP

Bineesh VP

9y
482
1
Sir,
 
I am in a asp.net  mini project. here the screenshot:-
 
 
My issue is with gridview row selection. I need to fetch data from gridview into textbox when click on edit link button.
 
Here the c# code to fetch the data:-
 
I put Row[1] because of do not know how to get the id from selected row. I need your help in this issue.
 
As per this code,getting the data from gridview second row. How can i find the row id of selected Row
Answers (16)