datagridview合计行演示代码 private void Form1_Load(object sender, EventArgs e) { dataGridViewTotal1.dt = GetData(); dataGridViewTotal1.DataGridView1.DataSource = GetData(); } private DataTable GetData() { DataTable dt; DataRow