public void GetProductType() { List <ProductType> aProductTypeList = new List <ProductType>(); aProductTypeList = aProductTypeManager.GetAllProductType(); productTypeDropDownList.DataSource = null; productTypeDropDownList.DataSource = aProductTypeList; productTypeDropDownList.DataTextField = "Name"; productTypeDropDownList.DataValueField = "Id"; productTypeDropDownList.DataBind(); productTypeDropDownList.Items.Insert(0, new ListItem("Select Item", "-1")); }
public void GetAllProductTypes() { productTypeGridView.DataSource = null; productTypeGridView.DataSource = aProductTypeManager.GetAllProductType(); productTypeGridView.DataBind(); }