R
Rod
If I set up a combo box at design time it works just fine.
Now if I place the following 3 lines in the form load procedure (I know they
are correct because they were copied from InitializeComponent)
The first line is obeyed, but the second line is ignored. I know this
because if I look at "DisplayMember" in debug mode I see what it was set to
at design time.
the 3rd line normally causes it to crash, but I guess if I understood what I
was doing wrong with the 2nd line I could figure the rest out.
--------------------
Me.cmbobxFilterLookup.DataSource = Me.datasetFilter.Membership_Status
Me.cmbobxFilterLookup.DisplayMember = "Membership Status"
Me.cmbobxFilterLookup.ValueMember = "Membership Status"
Now if I place the following 3 lines in the form load procedure (I know they
are correct because they were copied from InitializeComponent)
The first line is obeyed, but the second line is ignored. I know this
because if I look at "DisplayMember" in debug mode I see what it was set to
at design time.
the 3rd line normally causes it to crash, but I guess if I understood what I
was doing wrong with the 2nd line I could figure the rest out.
--------------------
Me.cmbobxFilterLookup.DataSource = Me.datasetFilter.Membership_Status
Me.cmbobxFilterLookup.DisplayMember = "Membership Status"
Me.cmbobxFilterLookup.ValueMember = "Membership Status"