How to selected row in GridView on LinkButton Click event?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
K P Singh ChundawatRank #1,527 · 1K reputationPosted Dec 16, 2014, 7:18 PM EST
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
Chinna NethaRank #5,573 · 294 reputationPosted Dec 16, 2014, 9:20 PM EST
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.....
Khargesh RajputRank #616 · 3.9K reputationPosted Dec 16, 2014, 9:30 PM EST
and
http://www.aspsnippets.com/Articles/How-to-get-Selected-Row-cell-value-from-GridView-in-ASPNet.aspx