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.
Unfortunately, activation email could not send to your email. Please try again.

ComboBox Selection w/ GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

14197 May 20,2004 11:35 AM May 20,2004 01:28 PM Windows Forms 2
loading
Tags: GridControl
Kenneth Johnson
Asked On May 20, 2004 11:35 AM

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

Administrator [Syncfusion]
Replied On May 20, 2004 12:25 PM

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.

Kenneth Johnson
Replied On May 20, 2004 01:28 PM

Thanks again Clay. The DropDownStyle did the trick. Ken

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;