private void loadInv_UtilizationDetails() { ListItem li = new ListItem("Select Inv_UtilizationDetails...", "0"); ddlInv_UtilizationDetails.Items.Add(li); List <Inv_UtilizationDetails> inv_UtilizationDetailss = new List <Inv_UtilizationDetails>(); inv_UtilizationDetailss = Inv_UtilizationDetailsManager.GetAllInv_UtilizationDetailss(); foreach (Inv_UtilizationDetails inv_UtilizationDetails in inv_UtilizationDetailss) { ListItem item = new ListItem(inv_UtilizationDetails.Inv_UtilizationDetailsName.ToString(), inv_UtilizationDetails.Inv_UtilizationDetailsIDs.ToString()); ddlInv_UtilizationDetails.Items.Add(item); } }
private void showInv_UtilizationDetailsGrid() { gvInv_UtilizationDetails.DataSource = Inv_UtilizationDetailsManager.GetAllInv_UtilizationDetailss(); gvInv_UtilizationDetails.DataBind(); }