Pages

Men

rh

4/10/2013

How to find the Link Button Control using C#

  Finding Control in C# using RowDatabound Event

 void gridView_RowDataBound(object sender, GridViewRowEventArgs e) 
  { 
      if (e.Row.RowType == DataControlRowType.DataRow) 
        { 
            LinkButton lnk = e.Row.FindControl("lnkEdit") as LinkButton; 
        } 
  }

No comments :

Post a Comment