By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,813 Members | 2,351 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,813 IT Pros & Developers. It's quick & easy.

Multiple Databindings

P: 9
Is it possible to change the data binding of an object depending on what a user has selected from a list?

For instance:

I have a list with table names(minus the tbl prefix, I use Hungarian notation)

Sold
New
Used


The user selects a table and when the selection changes I want all the objects on the page to be bound to the newly selected table. Help?
Sep 13 '07 #1
Share this Question
Share on Google+
3 Replies


VBPhilly
P: 95
Is it possible to change the data binding of an object depending on what a user has selected from a list?

For instance:

I have a list with table names(minus the tbl prefix, I use Hungarian notation)

Sold
New
Used


The user selects a table and when the selection changes I want all the objects on the page to be bound to the newly selected table. Help?

Yes, it can be done.

You should code the rebinding in the click or change events of the listbox.

What kind of data access are you working with?
Sep 13 '07 #2

P: 9
Thanks, and I'm working with a microsoft access 03 database.

Could you give an example of the code, or link a tutorial? I haven't been able to find a good one for this.
Sep 21 '07 #3

VBPhilly
P: 95
Thanks, and I'm working with a microsoft access 03 database.

Could you give an example of the code, or link a tutorial? I haven't been able to find a good one for this.
How are your controls currently bound?
DataSource,
Datamember.
Sep 21 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.