Solved

Simple data binding way in Windows Form?

Posted on 2006-10-24
2
179 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

821 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