Bineesh  Viswanath

Bineesh Viswanath

  • NA
  • 1k
  • 775.3k

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

Sep 8 2015 4:20 AM
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)