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.

Autocomplete in a GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

7037 Sep 10,2003 07:30 AM Sep 11,2003 06:12 AM Windows Forms 3
loading
Tags: GridControl
Serban Alexandru Florian
Asked On September 10, 2003 07:30 AM

Hi, I have a colum in a GDBG with a ComboBox Celltype and I`ve specified a Datasource for it. The autocomplete feature works great but is case insensitive. If i have an ABCD entry in the Datasource and i want to type Abce for example, it completes until ABCe instead of Ab. Is there a way to set the autocomplete feature to be case sensitive? Thank you!

Administrator [Syncfusion]
Replied On September 10, 2003 11:21 AM

There are no property settings that control this. You would have to derive your own combobox cell type. In your GridComboBoxCellRenderer, you would have to override OnKeyDown and do the autocompletion work there, respecting case throught out. You could try to copy and paste code from teh current implementation of this method, but I think it would take probably take some nontrivial changes to get things to work.

Serban Alexandru Florian
Replied On September 11, 2003 05:00 AM

I don`t realy have the time to do this... Maybe you will consider this in the future. Is there a way not to get the autotcomplete at all then? I just want the user to be able to select from a combobox an already existing item, or to write some other in the combo if it doesn`t already exist. Thank you!

Administrator [Syncfusion]
Replied On September 11, 2003 06:12 AM

You can set the DropDownStyle to Editable if you want to type values that are not in the datasource. But there are some restrictions. If the DisplayMember and ValueMember differ, then the new value you type will be used as a ValueMember. So, if your ValueMember is of type integer and your DisplayMember is a string, then you cannot type a new string. You can only type a new integer. Again, if you want different behavior, you would have to derive the cell control. You can checkout the different combobox behaviors in the Syncfusion\Essential Suite\Grid\Samples\CellTypes\ComboboxCells sample.

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.

;