public void FillGridBranch() { try { DataTable Dt = new DataTable(); string COMPANYCODE = DdlCompany.SelectedValue; Dt = BRANCH_MASLogicLayer.GetBranchDetailCompanyWise(COMPANYCODE); GridBranch.DataSource = Dt; GridBranch.DataBind(); } catch (Exception) { throw; } }
private void GetBranchBySelectedCompany() { try { DataTable Dt = new DataTable(); string USERCODE = DdlUser.SelectedValue; string COMPANYCODE = DdlCompany.SelectedValue; Dt = BRANCH_MASLogicLayer.GetBranchDetailUserWiseRightsAndCompanyWise(USERCODE, COMPANYCODE); GridBranch.DataSource = Dt; GridBranch.DataBind(); } catch (Exception) { throw; } }