/// <summary> /// Function to fill AccountyLedger combobox /// </summary> public void LedgerComboFill() { try { DataTable dtbl = new DataTable(); TransactionsGeneralFill obj = new TransactionsGeneralFill(); dtbl = obj.AccountLedgerComboFill(); DataRow dr = dtbl.NewRow(); dr[0] = 0; dr[2] = "All"; dtbl.Rows.InsertAt(dr, 0); cmbAccountLedger.DataSource = dtbl; cmbAccountLedger.DisplayMember = "ledgerName"; cmbAccountLedger.ValueMember = "ledgerId"; } catch (Exception ex) { formMDI.infoError.ErrorString = "RR2:" + ex.Message; } }