Exemple #1
0
        private void MaliyeListe()
        {
            toplamKasa = 0;
            DataTable dt = db.maliyeListele();

            dtgvMaliye.DataSource = dt;

            for (int i = 0; i < dtgvMaliye.Rows.Count; i++)
            {
                int a = Convert.ToInt32(dt.Rows[i]["Tutar"].ToString());
                toplamKasa += a;
            }
            lblKasa.Text = toplamKasa.ToString();
        }