Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox- show list of suggested values
Message
De
07/01/2004 16:01:38
Gerald Caussade
Department Mental Health - Missouri
Farmington, Missouri, États-Unis
 
 
À
07/01/2004 13:22:15
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00863557
Message ID:
00864841
Vues:
16
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
Fil
Voir

Click here to load this message in the networking platform