public List <DataTable> AreaOnlyViewAll() { List <DataTable> listObj = new List <DataTable>(); try { listObj = SpArea.AreaOnlyViewAll(); } catch (Exception ex) { MessageBox.Show("AR1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(listObj); }
/// <summary> /// Function to fill area datagridview /// </summary> public void AreaGridfill() { try { DataTable dtbl = new DataTable(); AreaSP spArea = new AreaSP(); dtbl = spArea.AreaOnlyViewAll(); dgvArea.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("AR1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }