/// <summary> /// BankAccount Combobox fill function /// </summary> public void bankAccountComboFill() { try { DataTable dtbl = new DataTable(); AccountLedgerSP spAccountLedger = new AccountLedgerSP(); TransactionsGeneralFill obj = new TransactionsGeneralFill(); dtbl = obj.BankComboFill(); cmbBankAccount.DataSource = dtbl; cmbBankAccount.ValueMember = "ledgerId"; cmbBankAccount.DisplayMember = "ledgerName"; cmbBankAccount.SelectedIndex = -1; } catch (Exception ex) { formMDI.infoError.ErrorString = "BR2:" + ex.Message; } }