/// <summary> /// Function for getting InvoiceNo Corresponding to Ledger In Register /// </summary> public void InvoiceNoComboFillInRegister() { PurchaseMasterSP SPPurchaseMaster = new PurchaseMasterSP(); try { isInvoiceFil = true; DataTable dtbl = new DataTable(); dtbl = SPPurchaseMaster.GetInvoiceNoCorrespondingtoLedgerInRegister(); cmbInvoiceNo.DataSource = dtbl; if (cmbInvoiceNo.DataSource != null) { cmbInvoiceNo.DisplayMember = "invoiceNo"; cmbInvoiceNo.ValueMember = "purchaseMasterId"; cmbInvoiceNo.SelectedIndex = -1; } isInvoiceFil = false; } catch (Exception ex) { MessageBox.Show("PR:53" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }