/// <summary> /// Function to fill QuotationNo combobox /// </summary> public void QuotationNoComboFill() { try { List<DataTable> ListObj = new List<DataTable>(); SalesQuotationBll bllSalesQuotation = new SalesQuotationBll(); ListObj = bllSalesQuotation.GetQuotationNoCorrespondingtoLedgerForSalesOrderRpt(Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString())); if (ListObj != null) { cmbQuotationNo.DataSource = ListObj[0]; cmbQuotationNo.DisplayMember = "invoiceNo"; cmbQuotationNo.ValueMember = "quotationMasterId"; DataRow dr = ListObj[0].NewRow(); dr["invoiceNo"] = "All"; dr["quotationMasterId"] = 0; ListObj[0].Rows.InsertAt(dr, 0); cmbQuotationNo.SelectedIndex = 0; } } catch (Exception ex) { MessageBox.Show("SORP8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }