public List <DataTable> PricingLevelOnlyViewAll() { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spPricingLevel.PricingLevelOnlyViewAll(); } catch (Exception ex) { MessageBox.Show("PRL4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }
/// <summary> /// function to fill all pricing level on the datagridview /// </summary> public void Gridfill() { try { DataTable dtblPricingLevel = new DataTable(); PricingLevelSP spPricingLevel = new PricingLevelSP(); dtblPricingLevel = spPricingLevel.PricingLevelOnlyViewAll(); dgvPricingLevel.DataSource = dtblPricingLevel; } catch (Exception ex) { MessageBox.Show("PL4" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }