I'm stuck with the following problem:
i build a dataGridView with 7 DataGridViewComboBoxColumn, adding with the following code
foreach (string jour in Enum.GetNames(typeof(Jours)))
{
DataGridViewComboBoxColumn comboboxColumn = CreateComboBoxColumn();
List<Journee> myJourneeList = new List<Journee>(mydatas.journeeTypeList.ToList());
comboboxColumn.DataSource = myJourneeList;
comboboxColumn.DisplayMember = "name";
comboboxColumn.ValueMember = "id";
comboboxColumn.DataPropertyName = "id";
comboboxColumn.HeaderText = jour;
dataGridView_machineSemaines.Columns.Add(comboboxColumn);
setSelectedValue(jour, myJourneeList);
}
I get the following dataGridView :
then if i selected a new value in one combobox :
and if a i scroll (with the horizontal-scroll) (or if i open an other tab and come back to this tab), then the whole row get the same selectedValue :
how can i fix this problem?