Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox- show list of suggested values
Message
De
07/01/2004 13:10:01
Gerald Caussade
Department Mental Health - Missouri
Farmington, Missouri, États-Unis
 
 
À
02/01/2004 17:11:39
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00863557
Message ID:
00864764
Vues:
21
Bonnie,

I moved my binding to load form now. I'll believe you when you say it matters, although nothing has changed.

The problem I am having at the moment is that combobox does not seem to "take" the value selected in the drop down list if I am using Databindings.Text to bind to results to the database, and using property Datasource and DisplayMember to fill the list. I can select a value in the list, but it never updates the database nor a grid that is connected to the same data.

It *does* work if I have the property Datasource and DisplayMember are empty and I use the collection to manually fill the list. In this case the chosen item does appear in my grid and also in the database on an update.

BINDING:

In terms of binding, what do I have to rebind, there are tons of properties for combobox! I decided to create my own property that allows the user to select a column and then I in Binding(), I bind this to the TexBox base classes' Text property.

I have no idea if this should help since I don't understand why rebinding is necessary in the first place.

Should I be rebinding Datasource, Displaymember and DataBindings.Text? If so, do I have to create custom properties, or do I retrieve the current existing property setting by getting the existing binding, remove it, and then simply add it back?

Have I confused you? :)

I've lost days on this now :(. Boy, I'll be happy when I can actually start developing my apps instead of just the basic components! :)

Thanks,

-Jerry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform