I want my combo box's value to be .Items[i]. Item is of type DataRowView.
My combo boxes are binded by database. Value member of cmbx is IDplayer in database. Selected value is playersBindingSource - IDplayer.
This is the error: Column 'IDplayer' is constrained to be unique. Value '2' is already present.
//cmb = Combo Box;
//cmbPlayers = Binding List of combo boxes
int i = 0;
foreach (ComboBox cmb in cmbPlayers)
{
cmb.SelectedItem = cmb.Items[i]; // ERROR HAPPENS
i++;
}