Solved

Simple data binding way in Windows Form?

Posted on 2006-10-24
2
171 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
ID: 17800883
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
ID: 17801112
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

13 Experts available now in Live!

Get 1:1 Help Now