/// <summary> ///Function to fill datagridview /// </summary> public void GridFill() { try { List<DataTable> ListObj = new List<DataTable>(); DataTable dtblAccountLedger=new DataTable(); AccountLedgerBll bllAccountLedger = new AccountLedgerBll(); ListObj = bllAccountLedger.AccountLedgerSearch(cmbGroupSearch.Text, txtLedgerNameSearch.Text.Trim()); dgvAccountLedger.DataSource = ListObj[0]; ListObj.Add(dtblAccountLedger); } catch (Exception ex) { MessageBox.Show("AL14:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }