0
我在DataGridViewComboBoxCell中有一些项目,当窗体加载时我需要在该DataGridViewComboBoxCell中显示特定项目。在DataGridViewComboBoxCell中获取特定项目#
这里是代码 -
DataGridViewComboBoxCell cbc = new DataGridViewComboBoxCell();
foreach (String item in objectListBoxList[listboxNumber].GetItemInList())
{
cbc.Items.Add(item);
}
dataGridViewList[tableNumber].Rows[parameter.getRow()].Cells[1] = cbc;
我需要它是这样的---
dataGridViewList[tableNumber].Rows[parameter.getRow()].Cells[1] = cbc.Items[1];