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