Solved

DevExpress Combo Box in ASP.Net 2008

Posted on 2011-09-22
1
371 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 500 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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 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