日期:2014-05-18 浏览次数:20730 次
int sum = 0; for (int i = 0; i < this.dataGridView1.Rows.Count; i++) { sum += int.Parse(this.dataGridView1.Rows[i].Cells["ColumnName"].Value.ToString()); } label.Text = sum.ToString();