private void BuscarMovimientos_Load(object sender, EventArgs e) { if (ListadoMovimientos != null) { if (ListadoMovimientos.Count != 0) { for (int a = 0; a < ListadoMovimientos.Count; a++) { DataGridViewRow DR = new DataGridViewRow(); DR.CreateCells(dtgv); Negocios.MovimientoN _m = ListadoMovimientos[a]; DR.Cells[ClmId.Index].Value = _m.Id.ToString(); DR.Cells[ClmPuntoVenta.Index].Value = _m.PuntoVenta.ToString(); DR.Cells[ClmNumeroMovimiento.Index].Value = _m.NroMovimiento.ToString(); DR.Cells[ClmFecha.Index].Value = _m.Fecha.ToString(); DR.Cells[ClmIdCuenta.Index].Value = _m.IdCuenta.ToString(); Negocios.CuentaN CUENTA = new Negocios.CuentaN(_m.IdCuenta); DR.Cells[ClmCuenta.Index].Value = CUENTA.Nombre; dtgv.Rows.Add(DR); } } } }
private void BuscarMovimientos_Load(object sender, EventArgs e) { if (ListadoMovimientos != null) { if (ListadoMovimientos.Count != 0) { for (int a = 0; a < ListadoMovimientos.Count; a++) { DataGridViewRow DR = new DataGridViewRow(); DR.CreateCells(dtgv); Negocios.MovimientoN _m = ListadoMovimientos[a]; DR.Cells[ClmId.Index].Value = _m.Id.ToString(); DR.Cells[ClmPuntoVenta.Index].Value = _m.PuntoVenta.ToString(); DR.Cells[ClmNumeroMovimiento.Index].Value = _m.NroMovimiento.ToString(); DR.Cells[ClmFecha.Index].Value = _m.Fecha.ToString(); DR.Cells[ClmIdCuenta.Index].Value = _m.IdCuenta.ToString(); Negocios.CuentaN CUENTA = new Negocios.CuentaN( _m.IdCuenta); DR.Cells[ClmCuenta.Index].Value = CUENTA.Nombre; dtgv.Rows.Add(DR); } } } }