I am experiencing a problem where I have a button to populates a FlowLayoutPanel. All works well, and the combobox is generated. However, there is a small bug in the data populating of the combobox. I have a Binding source set up from my database and I link to the combobox in the following manner. The data is populated as expected, however, when I create another combobox using the same button, it always fills it with the same selection of data as the combobox above or below. The bizarre occurrence also happens when I have many more comboboxes. Here is my code. Any suggestions?
private void additionalpartbtn_Click(object sender, EventArgs e)
{
string fieldname = "addpart";
int fieldnamecount = 0;
ComboBox newcombobox = new ComboBox();
newcombobox.Name = fieldname + fieldnamecount;
newcombobox.DataSource = sqlpartBindingSource;
newcombobox.DisplayMember = "part";
additionalpartspnl.Controls.Add(newcombobox);
ComboBox newsidecombobox = new ComboBox();
newsidecombobox.Name = "side" + fieldname + fieldnamecount;
newsidecombobox.DataSource = sqlsideBindingSource;
newsidecombobox.DisplayMember = "side";
newsidecombobox.Size = new System.Drawing.Size(40, 21);
additionalpartspnl.Controls.Add(newsidecombobox);
fieldnamecount++;
}