在DataGridView里添加了DataGridViewComboBoxColumn,new List<string>{"a","b","c"},单击下拉按钮,没反映,指导一下。

解决方案 »

  1.   

    代码贴出来,看下你那个泛型数组有没有添加到combox列里了,断点看下!
      

  2.   

      DataGridViewComboBoxCell temp = new DataGridViewComboBoxCell();                    for (int j = 0; j <4; j++)
                        {
                            temp.Items.Add("1212"+j.toString());
                        }
                        dataGridView2.Rows[i].Cells[0] = temp;
                        dataGridView2.Rows[i].Cells[0].Value = "12120";
      

  3.   

     DataGridViewComboBoxCell temp = new DataGridViewComboBoxCell();
       temp.Items.Add("A");
    temp.Items.Add("B");
    temp.Items.Add("C");
    dataGridView2.Rows[i].Cells[0] = temp;
    dataGridView2.Rows[i].Cells[0].Value = "A";//默认显示数据“A”相