?
Solved

DevExpress Combo Box in ASP.Net 2008

Posted on 2011-09-22
1
Medium Priority
?
407 Views
Last Modified: 2012-06-22
I'm using DevExpress for some controls in my ASP.Net application (C# code behind). I'm trying to set of the combo box properly, just like the normal dropdownlist with ASP.Net. The combo box feeds off of a SQL Server view. It is on a form used to edit existing records. But combo box does not seem to have a SelectedValue property to bind. Any ideas on how to do that?
0
Comment
Question by:dodgerfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
TRUENEUTRAL earned 2000 total points
ID: 36593893
The problem is that when using a combobox, the user could delete the value or type in a value that is not in the list.  Sure, you could validate it and stop them from proceeding, but the combobox was designed to allow this.  It sounds like you really want the listbox functionality here.

Nevertheless, to get the currently selected value:
comboBox1.Text

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question