This may be a simple question, but I'm trying to populate a combo box with an array of string variables, but only that pass a conditional test. I'm getting a "complex databinding accepts as a datasource either in Ilist or IListSource" error.
Obviously this is not the right way to do this, but if someone could point me in the right direction, it would be greatly appreciated.
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "First")
{
for (int count = 0; count < 4; count++)
{
if (passengerName[count] == null)
{
comboBox2.DataSource = seatNumber[count];
comboBox2.SelectedIndex = 0;
}
}
}
Thanks in advance!
Jim