I am trying to get the total of the datagridview row using vb.net. I was able to get the total of full row but what I want is to get the total of only for the Columns Named as "AMOUNT".
Actually what I was trying to do is use the Datagridview as data input section which not been link to any data table ones the input is done will save the data. Only thing I want is to get total for Column Name is "AMOUNT"
I was trying to get the result using the below codes but it gives me total of the current tow
For Each ROWSELECT As DataGridViewRow In ReviewGrid.Rows
If Grid1.Rows.Count > 0 Then
Dim CTotal As Decimal = 0
'Dim crow As DataGridViewRow = Grid1.CurrentRow
For RC = 0 To Grid1.CurrentRow.Cells.Count - 1
CTotal += ROWSELECT.Cells(RC).Value
Thanks You!
![[1]: https://i.stack.imgur.com/cFP0H.png](https://i.stack.imgur.com/AYlvm.png)
