You can check if label exists gridview will be bound
Control control = this.FindControl("Label1") as Control; if (control !=null) { GridView1.DataSource = data; GridView1.DataBind(); }
No comments:
Post a Comment