C
Christopher Weaver
I've set up a currency manager for a ComboBox like this:
private CurrencyManager cMgrSort;
.. . . . .
cMgrSort = (CurrencyManager)this.BindingContext[dsSortOrders1, "SortOrder"];
cbSortSelectionLookup.DataSource = dsSortOrders1.Tables["SortOrder"];
cbSortSelectionLookup.ValueMember = "Sort";
cbSortSelectionLookup.DisplayMember = "Sort";
cbSortSelectionLookup.Text = "Sort";
cMgrSort.Position = cMgrSort.Count - 1;
The problem is that no change I make to cMgrSort.Position has any effect on
the ComboBox (cbSortSelectionLookup). I would like to move the current
selection through the rows of the DataTable [dsSortOrders1, "SortOrder"],
but even though I've been able to move the Position of the CurrencyManager
at run time, the value of cbSortSelectionLookp.Text never changes with it,
not before or after I click the dropdown; it only changes when I actually
make a manual selection.
Anyone have a solution to this.
private CurrencyManager cMgrSort;
.. . . . .
cMgrSort = (CurrencyManager)this.BindingContext[dsSortOrders1, "SortOrder"];
cbSortSelectionLookup.DataSource = dsSortOrders1.Tables["SortOrder"];
cbSortSelectionLookup.ValueMember = "Sort";
cbSortSelectionLookup.DisplayMember = "Sort";
cbSortSelectionLookup.Text = "Sort";
cMgrSort.Position = cMgrSort.Count - 1;
The problem is that no change I make to cMgrSort.Position has any effect on
the ComboBox (cbSortSelectionLookup). I would like to move the current
selection through the rows of the DataTable [dsSortOrders1, "SortOrder"],
but even though I've been able to move the Position of the CurrencyManager
at run time, the value of cbSortSelectionLookp.Text never changes with it,
not before or after I click the dropdown; it only changes when I actually
make a manual selection.
Anyone have a solution to this.