日期:2014-05-20 浏览次数:20981 次
double sum= 0; foreach (DataGridViewRow row in this.dataviwe.Rows) { sum += double.Parse(row.Cells["dataGridViewTextBoxColumn6"].Value.ToString()); } this.xiaoshoujine.Text = sum.ToString();