I have a ComboBox which is bound with a DataSource from (obviously) a Database. However, there are 659 different entries inside this Database and I was hoping to tack on AutoComplete.
I tried setting the Source to the ListItems since, after initialization and the data is bound, all the items necessary are in fact inside the ComboBox so I had assumed that it would pick that up. I was wrong. I tried using a Custom source but VS errored out saying that I couldn't do that since the ComboBox was bound.
My question is, how can I utilize AutoComplete's "Suggest" mode with a bound ComboBox?
I have a ComboBox which is bound with a DataSource from (obviously) a Database. However, there are 659 different entries inside this Database and I was hoping to tack on AutoComplete.
I tried setting the Source to the ListItems since, after initialization and the data is bound, all the items necessary are in fact inside the ComboBox so I had assumed that it would pick that up. I was wrong. I tried using a Custom source but VS errored out saying that I couldn't do that since the ComboBox was bound.
My question is, how can I utilize AutoComplete's "Suggest" mode with a bound ComboBox?
Isn't there a property setting for the combobox ??
That is strange, I have my Combobox bound to my datasource using a Bindingsource
Combobox set to AutoCompleteMode SuggestAppend and AutoCompleteSource List Items
everything else is default values of a ComboBox and it works fine both in 2005 and 2008 perhaps there is something in 2010? But from reading it doenst appear that is the case
The attached VS2008 reads data from XML into a DataTable (this would represent data back from your database). Sets up a ComboBox for suggest mode. When a selection is made in the ComboBox either normal or auto-complete selection the user is brought to the proper row in the underly table. Hope this helps
The attached VS2008 reads data from XML into a DataTable (this would represent data back from your database). Sets up a ComboBox for suggest mode. When a selection is made in the ComboBox either normal or auto-complete selection the user is brought to the proper row in the underly table. Hope this helps
Kevin,
Thanks for the example, which does work. However, I've tried moving it to my project and it still did not want to work properly. It just doesn't want to render anything at all.
I'll go ahead and attach it if anyone wants to run it, it's the frm_pokeGen that's messing up and refusing to do anything with the AutoComplete feature. I'm honestly at a loss for what to do.
Thanks for the example, which does work. However, I've tried moving it to my project and it still did not want to work properly. It just doesn't want to render anything at all.
I'll go ahead and attach it if anyone wants to run it, it's the frm_pokeGen that's messing up and refusing to do anything with the AutoComplete feature. I'm honestly at a loss for what to do.
I will look at it tomorrow as I only have VS2008 at home.
I added a combobox to the form, clicked the arrow on the top right, clicked "use databound items", selected the pkmbindingsource and selected the display memeber "name"