private void loadInv_Utilization() { ListItem li = new ListItem("Select Inv_Utilization...", "0"); ddlInv_Utilization.Items.Add(li); List <Inv_Utilization> inv_Utilizations = new List <Inv_Utilization>(); inv_Utilizations = Inv_UtilizationManager.GetAllInv_Utilizations(); foreach (Inv_Utilization inv_Utilization in inv_Utilizations) { ListItem item = new ListItem(inv_Utilization.Inv_UtilizationName.ToString(), inv_Utilization.Inv_UtilizationID.ToString()); ddlInv_Utilization.Items.Add(item); } }
private void showInv_UtilizationGrid() { gvInv_Utilization.DataSource = Inv_UtilizationManager.GetAllInv_Utilizations(); gvInv_Utilization.DataBind(); }