Solved

Filter Dataset Based On ComboBox

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

690 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