int sum = 0; for (int i = 0; i < dataGridView1.Rows.Count; ++i) { sum += Convert.ToInt32(dataGridView1.Rows[i].Cells[38].Value); } txt_balance.Text = sum.ToString(); txt_total.Text = sum.ToString(); txt_Exempt.Text = sum.ToString();
dataGridView1.Rows[i].Cells[38].Value
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)