/// <summary> /// Function to fill Datagridview /// </summary> /// <param name="decId1"></param> /// <param name="decId2"></param> public void GridFill(decimal decId1, decimal decId2) { try { List<DataTable> ListObj = new List<DataTable>(); AccountLedgerBll bllAccountledger = new AccountLedgerBll(); if (cmbAccountGroup.Text == "ALL") { cmbAccountGroup.Text = "ALL"; } ListObj = bllAccountledger.LedgerPopupSearch(txtLedgerName.Text, cmbAccountGroup.Text, decId1, decId2); dgvLedgerPopup.DataSource = ListObj[0]; } catch (Exception ex) { MessageBox.Show("LP1:" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }