Forum  Commercial Foru...  Commercial Foru...  ComboBox - how do I limit it to the items?
Previous Previous
 
Next Next
New Post 12/9/2010 5:46 PM
  sramirez@dynacal.com
508 posts
1st Level Poster


ComboBox - how do I limit it to the items? 

I have a bound combobox (I am using the .DataSource) that has a number  of items (lets say 5).

When i click on the combobox I am allowed to type in a value (ex: test).  "Test" is not a value in the combo box. 

How do I prevent an invalid selection (like the user typing in a value) from being allowed?

Thanks,

Shawn

 
New Post 12/9/2010 11:23 PM
  JamesC
850 posts
www.redcastle.co.uk
1st Level Poster




Re: ComboBox - how do I limit it to the items? 

Hi Shawn,

simply set the property DropDownStyle == DropDownList

cheers james

 
New Post 12/10/2010 9:06 AM
  palli
14324 posts
1st Level Poster




Re: ComboBox - how do I limit it to the items? 

Hi Shawn,

Please let us know if you need more help after James's reply.

Thanks James,

Palli


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 12/10/2010 11:22 AM
  sramirez@dynacal.com
508 posts
1st Level Poster


Re: ComboBox - how do I limit it to the items? 

Wow, I have lot to learn!  That was easy.

Thanks very much.

Shawn

 
New Post 12/10/2010 2:48 PM
  palli
14324 posts
1st Level Poster




Re: ComboBox - how do I limit it to the items? 

Hi Shawn,

You are welcome.

We all have to learn. Glad it worked for you,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  ComboBox - how do I limit it to the items?
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS