Hi,
In my application i have datagrid with simple type of cells - string, integer.
I want to change one of the cell from string to be combobox.
i try to populate the in each line different inomration, but did not see anything. It means that i see comboBox in each cell of the column but the comboBox is empty.
enter code here
DataGridViewComboBoxColumn cmdParam1 = new DataGridViewComboBoxColumn();
cmdParam1.Name = "cmdParam1";
cmdParam1.HeaderText = "cmdParam1";
dataGridView1.Columns.Add(cmdParam1);
DataGridViewComboBoxCell cell = (DataGridViewComboBoxCell) (dataGridView1.Rows[2].Cells["cmdParam1"]);
cell.DataSource = new string[] { "1", "2", "3" };
cell = (DataGridViewComboBoxCell)(dataGridView1.Rows[4].Cells["cmdParam1"]);
cell.DataSource = new string[] { "4", "5", "6" };
enter code here
Thanks
Nir