private void loadInv_ItemTransaction() { ListItem li = new ListItem("Select Inv_ItemTransaction...", "0"); ddlInv_ItemTransaction.Items.Add(li); List <Inv_ItemTransaction> inv_ItemTransactions = new List <Inv_ItemTransaction>(); inv_ItemTransactions = Inv_ItemTransactionManager.GetAllInv_ItemTransactions(); foreach (Inv_ItemTransaction inv_ItemTransaction in inv_ItemTransactions) { ListItem item = new ListItem(inv_ItemTransaction.Inv_ItemTransactionName.ToString(), inv_ItemTransaction.Inv_ItemTransactionID.ToString()); ddlInv_ItemTransaction.Items.Add(item); } }
private void showInv_ItemTransactionGrid() { gvInv_ItemTransaction.DataSource = Inv_ItemTransactionManager.GetAllInv_ItemTransactions(); gvInv_ItemTransaction.DataBind(); }