4
Reply

How to access the control in grid view.

PankaJ D

PankaJ D

Apr 5 2011 3:49 AM
1.8k
I want to access the control in gridview,but not in grid events,I have use following code but its not working plz help me..

 foreach (GridViewRow row in gvRegisterProduct.Rows)
{
         if (row.RowType == DataControlRowType.DataRow)
         {
                 LinkButton lbreview = (LinkButton)row.FindControl("review");
                 lbreview.Attributes.Add("style", "display:block");
         }
}





Answers (4)