public void LoadDirectorInfo() { DataTable dt = sManager.GetDirectorInfo(); GridViewDirector.DataSource = dt; GridViewDirector.DataBind(); }
protected void GridViewDirector_RowDeleting(object sender, GridViewDeleteEventArgs e) { Label lbleDelete = (Label)GridViewDirector.Rows[e.RowIndex].FindControl("lblNames"); DataTable dt = sManager.DeleteDirector(lbleDelete); GridViewDirector.DataSource = dt; GridViewDirector.DataBind(); }