
23/04/2011, 06:07
|
| | Fecha de Ingreso: noviembre-2010 Ubicación: madrid
Mensajes: 478
Antigüedad: 14 años, 3 meses Puntos: 5 | |
Respuesta: Suma grid segun filtro Dim total As Decimal = 0
For Each row As DataGridViewRow In DgTotales.Rows
If CBool(Val(row.Cells(4).Value.Equals("TARJETA CREDITO").ToString)) Then
total = CDec(total + Val(row.Cells(1).Value) * Val(row.Cells(2).Value))
'carga el textbox con el total de lo vendido en el periodo seleccionado
LbTarTotal.Text = CStr(total.ToString("#,##0.00"))
End If
Next
Y ASI TAMPOCO VAAA |