[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Simple data binding way in Windows Form?

Posted on 2006-10-24
2
Medium Priority
?
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 1000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

656 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