Solved

Simple data binding way in Windows Form?

Posted on 2006-10-24
2
159 Views
Last Modified: 2010-04-23
Simple question, but i need the answer urgently. Thanks. Anybody can give me some sample code on simple data binding without using dataset? Say, I have a form with one combo box, two text fields. The data of the combobox can be binded to an arraylist, say, library name, and the two fields will be populated the corresponding library code, address, etc. Library name, library ID, library address come from the same table. What are the choices of implementing this without using dataset? Anybody can give me some links or code samples on this?
0
Comment
Question by:heyday2004
2 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 500 total points
Comment Utility
Seems like you're going to a lot of trouble avoiding the usage of the standard technique, so we might be able to answer better if you can explain why you DON'T want to use a dataset.

But to answer a portion of your question, you can bind a combobox to an ArrayList just as you would a dataset:

    Dim al As New ArrayList

        al.Add("a")
        al.Add("b")
        al.Add("c")

     ComboBox1.DataSource = al
0
 

Author Comment

by:heyday2004
Comment Utility
how to populate to other text boxes after selecting from the combo box? the records are from a query like: select library_name, library_id, address from library

thanks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now