PankaJ D

PankaJ D

  • NA
  • 154
  • 0

How to access the control in grid view.

Apr 5 2011 3:49 AM
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)