We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ComboBox Selection w/ GDBG

At a demo of our software, I was asked if a combobox list could be shortened as more of the text was entered via the keyboard. Currently, if 3 entries begine with the letter "B", the user can enter the "B" key 3 times to select the third entry. The user would like type in "B" and the list would be rebuilt with only words beginning with "B", "BO" would rebuild the list with any words beginning with "BO", etc. Suggestions? Ken

2 Replies

AD Administrator Syncfusion Team May 20, 2004 04:25 PM UTC

If you set the DropDownStyle to autocomplete, then with each keystroke, a valid entry from the list will be shown that autocompletes the typed entry up to that point. So, you you type BO, it will show an entry that start with BO, when you add a T, it will show an entry that starts with BOT, and so on. To dynamically change the list in a dropped combobox in a grid cell will take some work. I suspect you would have to derive a cell control and handle a several problems. In our standard combobox cell, the list is cached for efficiency. This cacheing will work against you trying to dynamically swap out the list. I am not sure how much work this would be. If the autocomplete serves your needs, that is a simple property setting.

KJ Kenneth Johnson May 20, 2004 05:28 PM UTC

Thanks again Clay. The DropDownStyle did the trick. Ken

Live Chat Icon For mobile
Up arrow icon