Пример #1
0
 private void ItemListByCompany(ItemViewModel addItem)
 {
     itemNameDropDownList.DataSource     = stockInManager.GetAllItemInfoByCompany(addItem);
     itemNameDropDownList.DataTextField  = "ItemName";
     itemNameDropDownList.DataValueField = "ItemId";
     itemNameDropDownList.DataBind();
     itemNameDropDownList.Items.Insert(0, new ListItem("Select a Item"));
     itemNameDropDownList.Items[0].Attributes["Disabled"] = "Disabled";
 }