Solved

Filter Dataset Based On ComboBox

Posted on 2008-06-11
3
246 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
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
raja_ind82 earned 500 total points
Comment Utility
0
 
LVL 1

Author Comment

by:H-SC
Comment Utility
0
 
LVL 1

Author Comment

by:H-SC
Comment Utility
Many thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

10 Experts available now in Live!

Get 1:1 Help Now