/// <summary> /// BankAccount Combobox fill function /// </summary> public void bankAccountComboFill() { try { List <DataTable> listObj = new List <DataTable>(); AccountLedgerBll bllAccountLedger = new AccountLedgerBll(); TransactionsGeneralFillBll obj = new TransactionsGeneralFillBll(); listObj = obj.BankComboFill(); cmbBankAccount.DataSource = listObj[0]; cmbBankAccount.ValueMember = "ledgerId"; cmbBankAccount.DisplayMember = "ledgerName"; cmbBankAccount.SelectedIndex = -1; } catch (Exception ex) { MessageBox.Show("BR:2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }