private void button2_Click(object sender, EventArgs e) { for (int i = 0; i <= dataGridView1.Rows.Count; i++) { int sum = 0 ; sum = sum + Convert.ToInt32(dataGridView1.Rows[i].Cells[i].Value); textBox2.Text = Convert.ToString(sum); } }
RowDatBound
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)