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 |