|
-
May 26th, 2009, 10:07 AM
#1
.Net ComboBox - Disabling selecteditem change
Hey,
I have a problem. I have a combobox that displays an arbitrary number of items. Lets say the names are ID0, ID1, ID2 (Displayed in the combobox.)
Now, when I have it's DropDownStyle property set to DropDown I can edit the text, but the SelectedItem is null anytime I enter text. Even if I write the same exact name it does not select it again.
What I want to do is for it to disallow this change of selecteditem, as the reason I want the user to enter text in the ComboBox is to change the ID property of the selecteditem, which obviously is harder if SelectedItem is set to null.
I seem to remember NOT having this problem a while ago, does anyone know what kind of settings I messed up?
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
|