Solved

Filter Dataset Based On ComboBox

Posted on 2008-06-11
3
249 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
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

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

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

22 Experts available now in Live!

Get 1:1 Help Now