public void LoadChairmanInfo() { DataTable dt = sManager.GetChairmanInfo(); GridViewChairman.DataSource = dt; GridViewChairman.DataBind(); }
protected void GridViewChairman_RowDeleting(object sender, GridViewDeleteEventArgs e) { Label lbleDelete = (Label)GridViewChairman.Rows[e.RowIndex].FindControl("lblName"); DataTable dt = sManager.DeleteChairmanInfo(lbleDelete); GridViewChairman.DataSource = dt; GridViewChairman.DataBind(); }