public void Recibir_Datos(int id_factura) { //detalle cuotas List <E_Detalles_Cuota> Lista_Cuotas = S_Factura.Listar_Detalles_Cuotas_CXC("A.ID_FACTURA=" + id_factura + " AND A.MONTO_PENDIENTE>0"); dg_detalle_cuotas.Rows.Clear(); foreach (E_Detalles_Cuota p in Lista_Cuotas) { dg_detalle_cuotas.Rows.Add(p.NUMERO_CUOTA, p.FECHA.ToString("dd/MM/yyyy"), p.MONTO_PENDIENTE, p.SEL, p.A_PAGAR); } dg_detalle_cuotas.DataSource = null; Txt_ID.Text = id_factura.ToString(); }