Exemplo n.º 1
0
 private void AllItemCompanyList()
 {
     companyDropDownList.DataSource     = stockInManager.GetAllItemCompany();
     companyDropDownList.DataTextField  = "CompanyName";
     companyDropDownList.DataValueField = "CompanyId";
     companyDropDownList.DataBind();
     companyDropDownList.Items.Insert(0, new ListItem("Select a Company"));
     companyDropDownList.Items[0].Attributes["Disabled"] = "Disabled";
 }
Exemplo n.º 2
0
        private void CompanyList(StockInViewModel stockInViewModel)
        {
            companyDropDownList.DataSource = stockInManager.GetAllItemCompany();


            companyDropDownList.DataTextField  = "CompanyName";
            companyDropDownList.DataValueField = "CompanyId";
            companyDropDownList.DataBind();
            companyDropDownList.Items.Insert(0, new ListItem("Select a Company"));
        }