Merhaba. Şimdi ben aşağıdaki kod ile dw'nin kolonunu toplayıp dw nin son satırına yazdırıyorum. Buraya kadar herşey normal ve çalışıyor. Fakat o toplamın yazdığı hücreye tıklayınca toplam değeri kayboluyor.
Kodum bu;
Dim satir As Integer = (DataGridView1.Rows.Count - 1)
Dim tutar As Double = 0
Dim i As Integer = 0
Do While (i < satir)
tutar = (tutar + (DataGridView1.Rows(i).Cells("MIKTAR").Value.ToString))
i = (i + 1)
Loop
DataGridView1.Rows(satir).Cells("MIKTAR").Value = ("Toplam : " + String.Format(tutar))
Teşekkürler