Dim totalSum As Integer Dim ds As New DataSet For i As Integer = 0 To ds.Tables(0).Rows.Count - 1 totalSum += ds.Tables(15).Rows(i).Item("TotalAmt") Next txtTotalAmount.Text = totalSum.ToString
Dim TOTAL As Double = 0 For Each row As DataRow In dTable.Rows TOTAL += Double.Parse(row("TotalAmt").ToString()) Next txtTotalAmount.Text = TOTAL
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)