public List <DataTable> PricelistPricingLevelViewAllForComboBox() { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spPriceList.PricelistPricingLevelViewAllForComboBox(); } catch (Exception ex) { MessageBox.Show("PL4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }
/// <summary> /// Function to fill the pricelevel combobox /// </summary> public void PricelevelComboFill() { try { DataTable dtbl = new DataTable(); PriceListSP spPriceList = new PriceListSP(); dtbl = spPriceList.PricelistPricingLevelViewAllForComboBox(); cmbPricingLevel.DataSource = dtbl; cmbPricingLevel.ValueMember = "pricinglevelId"; cmbPricingLevel.DisplayMember = "pricinglevelName"; } catch (Exception ex) { MessageBox.Show("PCL3" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }