Hola buenas tardes.
Tengo el siguiente código.
Try
Dim total As Double = 0
Dim fila As DataGridViewRow = New DataGridViewRow()
For Each fila In DataGridView2.Rows
total += Convert.ToDouble(fila.Cells("Column4").Value)
Next
Me.TBTotalPagar.Text = (Convert.ToDecimal(total).ToString("N2"))
Catch ex As Exception
MsgBox(ex.Message)
End Try
Cómo puedo hacer para que me sume únicamente los que tienen "LC" en una celda. En la grilla, la tercer celda dice "TipoComprobante". Entonces van aparecer "AE", "AC", "LC". Quiero que me sume por un lado
los que tienen "LC" en un textbox y por otro "AE" y "AC" en otro textbox.
Tomás Ochoa González