public void fillDepartmentGridview() { DepartmentBAL balDepartment = new DepartmentBAL(); DataTable dt = new DataTable(); dt = balDepartment.SelectAll(); if (dt != null && dt.Rows.Count > 0) { gvDepartment.DataSource = dt; gvDepartment.DataBind(); } }
private void FillGridViewDepartment() { DepartmentBAL balDepartment = new DepartmentBAL(); DataTable dtDepartment = new DataTable(); dtDepartment = balDepartment.SelectAll(); if (dtDepartment != null && dtDepartment.Rows.Count > 0) { gvDepartment.DataSource = dtDepartment; gvDepartment.DataBind(); } }