I have a combo box that I can not get to sort correctly. I fill the combobox with a customer id and name ( combined) have set the combobox.sorted = true
I saw one Idea here about turning the .sorted of the back on, but then the combobox list showed the same customerID all the way down the list.
Thanks for any help,
David
the data comes from a dataset and put into the combobox with the following code
I saw one Idea here about turning the .sorted of the back on, but then the combobox list showed the same customerID all the way down the list.
Thanks for any help,
David
the data comes from a dataset and put into the combobox with the following code
Code:
Private Sub FillList() ' use this sub to fill or refill the cusomer id list ' for the following events: add, update, delete customers Me.ComboBox_CustomerID.Items.Clear() Dim p As id_storename = New id_storename() Dim findinc As Integer findinc = 0 Do While findinc <> MainForm.MaxRows p.tmp_ID = ds.Tables("AddressBook").Rows(findinc).Item("CustID") p.tmp_StoreName = ds.Tables("AddressBook").Rows(findinc).Item("CompanyName") Me.ComboBox_CustomerID.Items.Add(p) findinc = findinc + 1 Loop ComboBox_CustomerID.Focus() End Sub
Comment