Solved

DevExpress Combo Box in ASP.Net 2008

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now