Esempio n. 1
0
		private void BindDSCompanies()
		{
			BPCompanies BPCompanies = new BPCompanies();
			DSCompanies = BPCompanies.SelectAll();
			DSCompanies.tbl_Companies.DefaultView.Sort = "CompanyName";
			DSCompanies.tbl_Companies.DefaultView.RowFilter = RowFilter("CompanyName", "CompanyActive");

			letters_Bind();
			dgCompanies.DataBind();

			SetPagerButtons();
			if (DSCompanies.tbl_Companies.DefaultView.Count ==  0)
			{
				lblError.Visible = true;
				lblError.Text = "0 Records found.";
			}

			else
			{
				lblError.Visible = false;
				lblError.Text = "";
			}
		}
Esempio n. 2
0
		private void BindCompanies()
		{
			BPCompanies bp = new BPCompanies();
			ddlCompanyUserCompanyID.DataSource = bp.SelectAll().tbl_Companies;
			ddlCompanyUserCompanyID.DataBind();
			ddlCompanyUserCompanyID.Items.Insert(0, new ListItem("Select a company", "-1"));
		}