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
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