G
Guest
Hi, (Winform VS2003)
I have a combo box bound to a typed data set. When the form loads, the
combo box is popluated using a method containing the simple code below:
------------------------
// Fill the datasets for the combo boxes
daDepartment.Fill(dsDepartment.Departments);
// Refresh the combo box
cboDepartment.Refresh();
------------------------------
This works fine, however, once the user has selected a, ummm, selection..
from the combo box, I want the combo box to reset the selection when they hit
the enter button. I use the same method above to do this, however their
selection is reatained & is shown as the current selection.
In other words If there is Selection A, B, C, D. On load the combo box is
set as A. Usr chooses C. After above method is run, I want combo again to
display A. This is not currently happening. C remains.
Hope somwone can shed some light on this seemingly simple problem.
Many thanks in advance.
Ant
I have a combo box bound to a typed data set. When the form loads, the
combo box is popluated using a method containing the simple code below:
------------------------
// Fill the datasets for the combo boxes
daDepartment.Fill(dsDepartment.Departments);
// Refresh the combo box
cboDepartment.Refresh();
------------------------------
This works fine, however, once the user has selected a, ummm, selection..
from the combo box, I want the combo box to reset the selection when they hit
the enter button. I use the same method above to do this, however their
selection is reatained & is shown as the current selection.
In other words If there is Selection A, B, C, D. On load the combo box is
set as A. Usr chooses C. After above method is run, I want combo again to
display A. This is not currently happening. C remains.
Hope somwone can shed some light on this seemingly simple problem.
Many thanks in advance.
Ant