Gridview Kolon Üzerinde Hesaplama - Borç Alacak Hesabı

public void bakiyeHesap()
    {
        for (int i = 0; i < GridView1.Rows.Count; ++i)
        {

            borc = decimal.Parse(GridView1.Rows[i].Cells[6].Text.Replace("₺", ""));
            alacak = decimal.Parse(GridView1.Rows[i].Cells[7].Text.Replace("₺", ""));

            bakiye = borc - alacak;

            bakiyetoplam += bakiye;

            GridView1.Rows[i].Cells[8].Text = bakiyetoplam.ToString("0,###.00") + " ₺";

        }

    }

Hiç yorum yok:

Yorum Gönder