public void loadpersona() { BindingSource dataSource = new BindingSource(); dataSource.DataSource = servicio.GetAll(); dgvdata.DataSource = dataSource; dgvdata.ClearSelection(); }
public void loadpersona() { Ventanaprincipal Ventana1 = new Ventanaprincipal(); BindingSource dataSource = new BindingSource(); dataSource.DataSource = servicio.GetAll(); Ventana1.dgvdata.DataSource = dataSource; Ventana1.dgvdata.ClearSelection(); }