Hi,
I have a data bound combobox in my application. I would like to add some unbound items to the same combo box. For example, instead of the first record being selected, I would like to have an item "Select...". I would also like to add an "Add New" item to the combo box which would take the user to a form to insert a new record.
Does anyone know how to add an unbound item to the combo box? My combo box is currently being generated from a data set? I tried cmbCategory.items.insert(0,"Select...") but that gave me an error: Items collection cannot be modified when the DataSource property is set.
Any feedback would be greatly appreciated.
Thank you.
I have a data bound combobox in my application. I would like to add some unbound items to the same combo box. For example, instead of the first record being selected, I would like to have an item "Select...". I would also like to add an "Add New" item to the combo box which would take the user to a form to insert a new record.
Does anyone know how to add an unbound item to the combo box? My combo box is currently being generated from a data set? I tried cmbCategory.items.insert(0,"Select...") but that gave me an error: Items collection cannot be modified when the DataSource property is set.
Any feedback would be greatly appreciated.
Thank you.