Begin typing your search above and press return to search. Press Esc to cancel.

Cara menjumlahkan total isi kolom di dalam datagridview


___________________________________
 If dg.RowCount > 1 Then
            Dim totalharga As Integer = 0
            For index As Integer = 0 To dg.RowCount - 1
                totalharga += Convert.ToInt32(dg.Rows(index).Cells(5).Value)
            Next
            txtGrandtotal.Text = Val(txtGrandtotal.Text) + totalharga
        End If
_______________________________________________________________
Semoga bermanfaat.
http://pangeran-it.blogspot.com/

Tidak ada komentar:

Posting Komentar