Dim Debittotal As Integer = 0 Dim Credittotal As Integer = 0 If grdDebit.RowCount > 1 Then For index As Integer = 0 To grdDebit.RowCount - 1 ***** Debittotal += Convert.ToDecimal(grdDebit.Rows(index).Cells(2).Value) Next End If If grdCredit.RowCount > 1 Then For index As Integer = 0 To grdCredit.RowCount - 1 Credittotal += Convert.ToDecimal(grdCredit.Rows(index).Cells(2).Value) Next End If Dim NewfnBalance As Integer = Debittotal - Credittotal
grdDebit.Rows(index)
Cells(1)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)