private void loadADLHeaderDetail() { ListItem li = new ListItem("Select ADLHeaderDetail...", "0"); ddlADLHeaderDetail.Items.Add(li); List <ADLHeaderDetail> aDLHeaderDetails = new List <ADLHeaderDetail>(); aDLHeaderDetails = ADLHeaderDetailManager.GetAllADLHeaderDetails(); foreach (ADLHeaderDetail aDLHeaderDetail in aDLHeaderDetails) { ListItem item = new ListItem(aDLHeaderDetail.ADLHeaderDetailName.ToString(), aDLHeaderDetail.ADLHeaderDetailID.ToString()); ddlADLHeaderDetail.Items.Add(item); } }
private void showADLHeaderDetailGrid() { gvADLHeaderDetail.DataSource = ADLHeaderDetailManager.GetAllADLHeaderDetails(); gvADLHeaderDetail.DataBind(); }