我的Datagridview里面有个DatagridviewComboboxCell列,我想知道哪个事件可以和Combobox的SelectedIndexChanged事件的效果一样的吗?

解决方案 »

  1.   

            private void dataGridView1_CellValueChanged_1(object sender, DataGridViewCellEventArgs e)
            {
                if (this.dataGridView1.CurrentRow == null || this.dataGridView1.CurrentCell.Value == null)
                    return;            switch (this.dataGridView1.CurrentCell.ColumnIndex)
                {
                    case 0:
                        // 第0列值的变更
                        break;
                    case 1:
                        // 第1列值的变更
                        break;
                }
            }
      

  2.   

    TextChanged和selectIndexChanged一样的,试过了