Filter Dataset Based On ComboBox
Posted on 2008-06-11
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.