Dim i As Integer
For i = 0 To myGridView.Rows.Count - 1
TextBox2.Text += CInt(myGridView.Rows(i).Cells(8).Value).ToString("#,##0")
Next
Tag : .NET, Ms SQL Server 2008, VBScript, Win (Windows App), VB.NET, VS 2010 (.NET 4.x)
Date :
2011-10-06 17:00:20
By :
pisansri
View :
1309
Reply :
4
No. 1
Guest
Code (VB.NET)
Dim i As Integer
Dim j As Integer
For i = 0 To myGridView.Rows.Count - 1.
j += CInt(myGridView.Rows(i).Cells(8).Value).ToString("#,##0")
Next
TextBox2.Text = j