Hello,
I have a combobox which is populated using datatable:
I want to add a new item manually as the first item in the combobox, here is what I added right after the above code:Code:Dim dt As New DataTable dt = GetPatientList() cbEPCDPatient.DataSource = dt cbEPCDPatient.DisplayMember = "Patient" cbEPCDPatient.ValueMember = "ID"
It seems this item is NOT added to the combobox.Code:cbEPCDPatient.Items.Add(New DictionaryEntry("Select Patient", 0))
What is the right way to make this?
Thank you very much.




Reply With Quote
