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! :)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement