I am adding a row on the button click event and adding combobox in a row cell but I am not able to bind the values in that cell combobox. Can any one suggest me what I am doing wrong??
DataGridViewRow dgr = new DataGridViewRow();
DataGridViewComboBoxCell cbCol = new DataGridViewComboBoxCell();
cbCol.Items.Add("Test");
cbCol.Items.Add("Test");
cbCol.Items.Add("Test");
cbCol.Items.Add("Test");
dgr.Cells.Add(cbCol);
dataGridView1.Rows.Add(dgr);
The above code is written in a button click event.