Pages

Men

rh

5/01/2013

How to find the control in Gridview Footer row using C#

protected void gdvs_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.Footer)
            {
                Button btnDelete = (Button)e.Row.FindControl("btnDeleteRow");
                btnDelete.Visible = false;
            }

           
        }

No comments :

Post a Comment