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 cell

Thread ID:

Created:

Updated:

Platform:

Replies:

24453 Feb 4,2005 01:00 AM Feb 4,2005 08:22 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 4, 2005 01:00 AM

I have a GDBG with 2 columns of which cells have combo box style, dropdownstyle is autocomplete. When I click the first column (containing : "ABC", "BAC","ACB", "DAB" and type A, the cell automatically selects "ABC", and I click C, it seletcs "ACB", then I click D, it does not select "DAB", it still select ACB. Summarily, I want the combox cell has both two dropdownstyle : exclusive and autocomplete. 1. How can I mix these 2 types ? 2. When I select an item in the first column, the text is being selected in the second column is erased, I don''t know why ? Thank you very much .

Administrator [Syncfusion]
Replied On February 4, 2005 08:22 AM

Hi David, only the exclusive choicelist style will select text based on the first entry. The autocomplete style is programmed in such way that when you enter a character at a given position it looks for a string that matches the existing text plus the new character at the next position. This behavior can''t be changed easily. One idea would be to check the KeyPress event and analyze the character that is pressed and append it to the current TextBox.SelectedText and see if there is a possible match in the choice list but I am kind of afraid the devil will be in the detail to get things working. If you have the source code check out the KeyPress event handler in GridComboBoxCellRenderer. That should give an idea what is going on there. Stefan >I have a GDBG with 2 columns of which cells have combo box style, dropdownstyle is autocomplete. When I click the first column (containing : "ABC", "BAC","ACB", "DAB" and type A, the cell automatically selects "ABC", and I click C, it seletcs "ACB", then I click D, it does not select "DAB", it still select ACB. Summarily, I want the combox cell has both two dropdownstyle : exclusive and autocomplete. >1. How can I mix these 2 types ? >2. When I select an item in the first column, the text is being selected in the second column is erased, I don''t know why ? > >Thank you very much . > >

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.

;