/// <summary> /// Function to fill the accountgroup combo box /// </summary> public void AccountGroupComboFill() { try { AccountGroupBll bllAccountGroup = new AccountGroupBll(); List<DataTable> ListObj = new List<DataTable>(); ListObj = bllAccountGroup.AccountGroupViewAllComboFillForAccountLedger(); DataRow dr = ListObj[0].NewRow(); dr["accountGroupName"] = "All"; dr["accountGroupId"] = -1; ListObj[0].Rows.InsertAt(dr, 0); cmbAccountGroup.DataSource = ListObj[0]; cmbAccountGroup.ValueMember = "accountGroupId"; cmbAccountGroup.DisplayMember = "accountGroupName"; } catch (Exception ex) { MessageBox.Show("ALREP2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> ///Function to fill acoountgroup combobox /// </summary> public void AccountGroupComboFill() { try { AccountGroupBll bllAccountGroup = new AccountGroupBll(); List<DataTable> ListObj = new List<DataTable>(); ListObj = bllAccountGroup.AccountGroupViewAllComboFillForAccountLedger(); cmbGroup.DataSource = ListObj[0]; cmbGroup.ValueMember = "accountGroupId"; cmbGroup.DisplayMember = "accountGroupName"; } catch (Exception ex) { MessageBox.Show("AL8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }