I\'m trying to allow user to select value from DataGridViewComboBoxColumn
for each new row. I\'ve bound ComboBox
in GridView
to databa
bindingSource1.DataSource = itemBAL.GetTable();
dataGridView1.DataSource = bindingSource1;
ItemName.DataSource = bindingSource1; //Where ItemName is an instance ofDataGridViewComboBoxColumn
ItemName.DisplayMember = "Name";
ItemName.ValueMember = "ItemId";
add this line only
dataGridView1["ItemName",dataGridRowNumber].value=1;//item id value