Solved

Filter Dataset Based On ComboBox

Posted on 2008-06-11
3
257 Views
Last Modified: 2010-04-23
I have a ComboBox that is filled via the following :

 Dim dv As DataView
        dv = mydataset.Message.DefaultView
        dv.RowFilter = "enabled= 1"
        ComboBox1.DataSource = dv
        ComboBox1.DisplayMember = "Name"
        ComboBox1.ValueMember = "id_number"
        ComboBox1.Text = "Select To Edit Record"

After I select a name; I would like to filter the dataset so that all of the fields on the form are set to that particular record selected based on id_number(valuemember).  The fields can be bound or not it does not make any difference.  I just need them to all populate with the related data based on the id selected in the combo.
0
Comment
Question by:H-SC
[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
3 Comments
 
LVL 14

Accepted Solution

by:
raja_ind82 earned 500 total points
ID: 21763534
0
 
LVL 1

Author Comment

by:H-SC
ID: 21771880
0
 
LVL 1

Author Comment

by:H-SC
ID: 21771883
Many thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

737 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