Version

Disabling typing text when no match is found

WebDropDown™ can easily be configured to not allow the end-user to type any kind of unwanted text in the value display; you can accomplish this without writing a single line of code. You can achieve this functionality by setting the WebDropDown control’s EnableCustomValues property to False. By default, this property is set to True. When EnableCustomValues property is set to False, the end-user cannot type in the text that does not match the text of any item in the drop-down list.

You can set the EnableCustomValues property either using the Microsoft® Visual Studio® Property Window or by using the following code:

In Visual Basic:

WebDropDown1.EnableCustomValues = false

In C#:

WebDropDown1.EnableCustomValues = false;