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.
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.
Sam HobbsPosted Apr 6, 2011, 6:45 PM
Suthish NairPosted Apr 6, 2011, 11:38 AM
PankaJ DPosted Apr 5, 2011, 4:52 AM
Vijay YadavPosted Apr 5, 2011, 4:07 AM
Your code seems to be correct. Are you getting any kind of error or anything else?