/// <summary> /// Function to fill the service account combo box /// </summary> public void ServiceAcoountComboFill() { try { DataTable dtblServiceAcounts = new DataTable(); AccountLedgerSP spAccountLedger = new AccountLedgerSP(); dtblServiceAcounts = spAccountLedger.AccountLedgerSearchForServiceAccountUnderIncome(); cmbServiceAC.DataSource = dtblServiceAcounts; cmbServiceAC.DisplayMember = "ledgerName"; cmbServiceAC.ValueMember = "ledgerId"; cmbServiceAC.SelectedText = "Service Account"; } catch (Exception ex) { MessageBox.Show("SV 07 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }