本帖最后由 bdmh 于 2015-01-06 16:36:41 编辑

解决方案 »

  1.   

    好像在初始化的时候可以给cell绑事件
      

  2.   

    可以写代码出来吗?
    在事件里边计算A+B,A*B的值不就好了?
      

  3.   

            private void dataGridView1_setSingeCommodity_CellValueChanged(object sender, DataGridViewCellEventArgs e)
            {
                this.dataGridView1_setSingeCommodity.Rows[0].Cells[0].Value = System.Int32.Parse(this.dataGridView1_setSingeCommodity.Rows[0].Cells[0].Value.ToString()) + System.Int32.Parse(this.dataGridView1_setSingeCommodity.Rows[0].Cells[1].Value.ToString());

    在CellValueChanged事件里算一下就可以了