Solved

DevExpress Combo Box in ASP.Net 2008

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Calling stored proc in EDMX 11 23
Anyway to make "All" the default in the dropdown? 6 34
Syntax Error 2 45
Server Error 11 47
AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

21 Experts available now in Live!

Get 1:1 Help Now