/// <summary> /// Function for getting InvoiceNo Corresponding to Ledger In Register /// </summary> public void InvoiceNoComboFillInRegister() { PurchaseInvoiceBll BllPurchaseInvoice = new PurchaseInvoiceBll(); try { isInvoiceFil = true; List<DataTable> ListObj = new List<DataTable>(); ListObj = BllPurchaseInvoice.GetInvoiceNoCorrespondingtoLedgerInRegister(); cmbInvoiceNo.DataSource = ListObj[0]; 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); } }