|
-
Oct 3rd, 2007, 11:43 AM
#1
Thread Starter
Addicted Member
[2005] DropDown List (Selecting item)
I have a dropdownlist which has three items. When I select any item , I don't see what i have selected , in other words , the selected item doesn't appear in the combobox text!
Does anyone know what might be wrong ?
-
Oct 3rd, 2007, 01:40 PM
#2
Re: [2005] DropDown List (Selecting item)
Do you have any code in the project relating to that combo box?
If for example you had code that was inside the selectedIndexChanged event that set the index to -1 that could do it. Would be extremely dumb but thought I'd make a stab at it.
Does it do it to any other combo boxes that you add to the form that have items in its collection?
-
Oct 3rd, 2007, 02:42 PM
#3
Junior Member
Re: [2005] DropDown List (Selecting item)
try setting the CausesValidation property of the control to False.
-
Oct 3rd, 2007, 02:52 PM
#4
Addicted Member
Re: [2005] DropDown List (Selecting item)
i know this is stupid but, have you set the dropdownstyle of the combobox to only dropdown insted of dropdownlist, on the properties pane or in code?
-
Oct 3rd, 2007, 03:25 PM
#5
Thread Starter
Addicted Member
Re: [2005] DropDown List (Selecting item)
winsrp , actually , it was dropdown and when I changed it to dropdownlist it worked.
thanks alot
-
Oct 3rd, 2007, 03:45 PM
#6
Addicted Member
Re: [2005] DropDown List (Selecting item)
most welcome, remeber to put your problem as solved dude.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|