I assume you've read my other responses...
Well, instead of rebinding, I just unbind if necessary each time I do a bind, and I rebind only when I change the .Position property. So I have the following code for my ComboBox Bind() method:
Binding d = this.DataBindings["SelectedValue"];
if (d != null)
{
this.DataBindings.Remove(this.DataBindings["SelectedValue"]);
}
this.DataBindings.Add(d);
With or without this code, changing the position to the last and first record works, but not incrementing or decrementing the position by one.
So, I am still having problems manually changing the position.
Like I asked before, should I be unbinding using the .Remove() and then rebinding after I change the position? Or maybe I have to rebind more than just the SelectedValue *or* I'm not doing what you are expecting at all! :)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only