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

Upendra Pratap ShahiPosted Sep 11, 2015, 3:14 AM
Raja TPosted Sep 11, 2015, 1:52 AM
Raja TPosted Sep 11, 2015, 1:50 AM
Rajeesh MenothPosted Sep 11, 2015, 1:49 AM
Bineesh ViswanathPosted Sep 11, 2015, 1:46 AM
{
string busId;
if (e.CommandName == "Edit")
{
busId = e.CommandArgument.ToString();
decimal decBusId=decimal.Parse(busId.ToString());
FetchGridDataIntoTextBox(decBusId);
btnSave.Text = "Update";
}
}
Raja TPosted Sep 8, 2015, 7:26 AM
Rajeesh MenothPosted Sep 8, 2015, 6:38 AM
Raja TPosted Sep 8, 2015, 6:35 AM
Bineesh ViswanathPosted Sep 8, 2015, 6:18 AM
Rajeesh MenothPosted Sep 8, 2015, 5:53 AM
Shashank PatilPosted Sep 8, 2015, 5:26 AM
Raja TPosted Sep 8, 2015, 5:21 AM
Bineesh ViswanathPosted Sep 8, 2015, 5:18 AM
Raja TPosted Sep 8, 2015, 4:57 AM
Munesh SharmaPosted Sep 8, 2015, 4:42 AM
Shashank PatilPosted Sep 8, 2015, 4:40 AM