2
I’m having a problem with my program where when I change the values of one of my combobox, example:
private void Ex1Mat_SelectedIndexChanged(object sender, EventArgs e)
{
if (start == false)
{
SqlDataAdapter Ex1UpdateAss = new SqlDataAdapter("select Assunto, id from dbo.Assuntos where Materia = " + Ex1Mat.Text + "", conex);
Ex1UpdateAss.Fill(AssTable);
Ex1Ass.DataSource = AssTable;
Ex1Ass.DisplayMember = AssTable.Columns[0].ColumnName;
Ex1Ass.ValueMember = AssTable.Columns[1].ColumnName;
}
}
all change their DisplayMembers
which in case was to change only one.
Do you have any idea what this is?
You have several combobox on your screen and when you call selectedindexchanged they all change too ? (other combos?) that’s it?
– Thiago Loureiro