Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
UltragridCell DropDownList
posted

Hello

I want to add a column where the user can select a value from a dropdown or enter it by the keyboard. I would like some sort of autocomplete so you should just start to enter the value. It should only be allowed to use the values from the predefined dropdown. 

Example value:

1 meters

3 meters

5 meters

11 meters

I've tried to use the ColumnStyle.DropDownList, which allows the user to only select from predfined values. However it is not keyboard-freindly. Imagaine the user has to fill 200 rows. If you select the cell and press 3 it will select it, but if you afterwards press 5 nothing happens. Only the first time. 

Then i've tried using the ColumnStyle.DropDown. But then the user can enter anything, and that should not be possible. However the autocomplete works just the way I want. 

I also tried ColumnStyle.DropDownValidate without any luck. It will throw an exception and not much usefull. 

Can you point me in the right direction?