public List <DataTable> PayHeadSearch(string a) { List <DataTable> listObj = new List <DataTable>(); try { listObj = SPPayHead.PayHeadSearch(a); } catch (Exception ex) { MessageBox.Show("PBBLL:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(listObj); }
/// <summary> /// Function to fill Datagridview /// </summary> public void GridFill() { try { PayHeadSP spPayhead = new PayHeadSP(); DataTable dtblPayhead = new DataTable(); dtblPayhead = spPayhead.PayHeadSearch(txtPayheadSearch.Text.Trim()); dgvPayhead.DataSource = dtblPayhead; } catch (Exception ex) { MessageBox.Show("PH4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }