foreach (GridViewRow row in gvRegisterProduct.Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
LinkButton lbreview = (LinkButton)row.FindControl("review");
lbreview.Attributes.Add("style", "display:block");
}
}
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 attend4days leftRegister
Vijay YadavRank #1,637 · 943 reputationPosted Apr 5, 2011, 12:07 AM EDT
Your code seems to be correct. Are you getting any kind of error or anything else?
PankaJ D147 reputationPosted Apr 5, 2011, 12:52 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Apr 6, 2011, 7:38 AM EDT
Sam HobbsRank #108 · 20.5K reputationPosted Apr 6, 2011, 2:45 PM EDT