J
Jack
I have a form with a combo box that the items are being
sourced from a dataset.
The problem is that the list only get populated after the
form was previously opened; meaning, I open the form with
the combo and the list is empty, then I close it and open
it again and now it has data in the list.
The code that executes when the form is loaded is below:
CampaignSelectForm.DsCampaign1.Clear()
CDsCampaign1.Clear()
OleDbDataAdapter1.Fill(DsCampaign1)
Combo1.DataSource = DsCampaign1.campaign
Combo1.DisplayMember=DsCampaign1.campaign.campaignColumn.To
String
Combo1.Refresh()
sourced from a dataset.
The problem is that the list only get populated after the
form was previously opened; meaning, I open the form with
the combo and the list is empty, then I close it and open
it again and now it has data in the list.
The code that executes when the form is loaded is below:
CampaignSelectForm.DsCampaign1.Clear()
CDsCampaign1.Clear()
OleDbDataAdapter1.Fill(DsCampaign1)
Combo1.DataSource = DsCampaign1.campaign
Combo1.DisplayMember=DsCampaign1.campaign.campaignColumn.To
String
Combo1.Refresh()