private void loadDDLs()
 {
     IStock.BLL.ItemCategories Cats = new IStock.BLL.ItemCategories();
     Cats.LoadAll();
     Cats.Sort = "Name";
     uiDropDownListCats.DataSource = Cats.DefaultView;
     uiDropDownListCats.DataTextField = "Name";
     uiDropDownListCats.DataValueField = "ItemCategoryID";
     uiDropDownListCats.DataBind();
     uiDropDownListCats.Items.Insert(0, new ListItem("إختر التصنيف", ""));
     uiLinkButtonAdd.Enabled = (!string.IsNullOrEmpty(uiDropDownListCats.SelectedValue));
 }
Example #2
0
 private void BindCats()
 {
     ItemCategories cats = new ItemCategories();
     cats.LoadAll();
     cats.Sort = "Name";
     uiGridViewCats.DataSource = cats.DefaultView;
     uiGridViewCats.DataBind();
 }
Example #3
0
 private void LoadCategories()
 {
     ItemCategories cats = new ItemCategories();
     cats.LoadAll();
     uiDropDownListCats.DataSource = cats.DefaultView;
     uiDropDownListCats.DataTextField = "Name";
     uiDropDownListCats.DataValueField = "ItemCategoryID";
     uiDropDownListCats.DataBind();
     uiDropDownListCats.Items.Insert(0, new ListItem("إختر تصنيف", ""));
 }