public void FillGridCompany() { try { DataTable Dt = new DataTable(); // Dt = COMPANYLogicLayer.GetAllCOMPANYDetials(); GridCompany.DataSource = Dt; GridCompany.DataBind(); } catch (Exception) { throw; } }
public void FillGridCompany() { try { DataTable Dt = new DataTable(); Dt = COMPANYLogicLayer.GetAllCOMPANYDetials(Convert.ToInt32(Session["USERCODE"].ToString()), Convert.ToInt32(Session["COMP_CODE"].ToString())); GridCompany.DataSource = Dt; GridCompany.DataBind(); } catch (Exception) { throw; } }
private void GetCompanyOfSelectedUser() { try { DataTable Dt = new DataTable(); string selectedUser = DdlUser.SelectedValue; Dt = COMPANYLogicLayer.GetCompanyDetailUserWiseRights(selectedUser); GridCompany.DataSource = Dt; GridCompany.DataBind(); } catch (Exception) { throw; } }