how to selected row in GridView on LinkButton Click event?
how to selected row in GridView on LinkButton Click event?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Dec 17, 2014, 2:30 AM
and
http://www.aspsnippets.com/Articles/How-to-get-Selected-Row-cell-value-from-GridView-in-ASPNet.aspx
Chinna NethaPosted Dec 17, 2014, 2:20 AM
my linkbutton code is:
selectedrow display on label
.cs code is:
protected void Senddata_Click(object sendar, EventArgs e)
{
GridViewRow grdrow = (GridViewRow)((LinkButton)sendar).NamingContainer as GridViewRow;
Label ID1 = (Label)grdrow.FindControl("grdtopic");
}
can't displayed
plz help me.....
K P Singh ChundawatPosted Dec 17, 2014, 12:18 AM
Go through following links it might help you.
http://stackoverflow.com/questions/6295767/getting-selected-row-of-aspgridview-when-click-on-link-button-to-get-hidden-id-v
http://aspsnippets.com/Articles/ASP.Net-GridView---Get-Row-Index-on-RowCommand-and-Click-events.aspx