|
|
#1 |
|
Frenzied Member
Join Date: Jul 02
Location: Des Moines, NM
Posts: 1,690
![]() |
ComboBox and updating data
I have a ComboBox that is data bound to a particular Dataset's table and column. When the DropDownStyle is DropDownList, a user's changes to the field are not recognized.
Changing the DropDownStyle to DropDown - things work just fine - either by selecting from the list or manually typing. The latter is not an option, as I need to restrict the possible values. What am I missing here? Any ideas are appreciated. Mike |
|
|
|
|
|
#2 |
|
Elite Member ®
Join Date: Aug 02
Location: RUH
Posts: 8,063
![]() ![]() |
Re: ComboBox and updating data
I had quite similar problem with DropDownList . I was trying to get the selected item by the user like this :
MsgBox(ComboBox4.SelectedItem()) and always throw an exception but when I changed the dropping style to ropDown it works . at the end I used this :MsgBox(ComboBox4.Text) along with DropDownList property and worked fine . I dunno if this would give you any clue or not !
__________________
|
|
|
|
|
|
#3 |
|
Frenzied Member
Join Date: Jul 02
Location: Des Moines, NM
Posts: 1,690
![]() |
Well, it helped in that I know I'm not doing something really stupid, seems like there's a problem when setting the DropDownStyle to DropDownList.
Got around the problem by manually (through code, that is) updating the dataset's table/row/column with the Text property of the ComboBox. Seems to me this is not intended behavior, which leads me to a (newbie) question: Is there an official bug list I can search/report a bug? Searched msdn but could not find. TIA, Mike |
|
|
|
|
|
#4 |
|
Elite Member ®
Join Date: Aug 02
Location: RUH
Posts: 8,063
![]() ![]() |
It is probably a bug . that's what I though then . There are a lot of bugs in this version and in the promising version as well that called VS.NET2003 . Let me see if I can find some of them.
__________________
|
|
|
|
|
|
#5 |
|
Elite Member ®
Join Date: Aug 02
Location: RUH
Posts: 8,063
![]() ![]() |
They are increasing day by day , week by week , product by product .
|
|
|
|
|
|
#6 |
|
Frenzied Member
Join Date: Jul 02
Location: Des Moines, NM
Posts: 1,690
![]() |
Thanks, Pirate, appreciate your help. Always fun to learn something new and never know if it's my code or not. Keeps me busy anyway........
|
|
|
|
|
|
#7 |
|
Elite Member ®
Join Date: Aug 02
Location: RUH
Posts: 8,063
![]() ![]() |
No problem dude ! Did you find similar problem on the list ?
__________________
|
|
|
|
|
|
#8 |
|
Frenzied Member
Join Date: Jul 02
Location: Des Moines, NM
Posts: 1,690
![]() |
No, could not find on either list. The jelovic site has an email link to report a bug, which I'm writing up now.
One might think that Microsoft has an official site for these kind of things, but then again, thinking usually gets me in trouble. |
|
|
|
|
|
#9 |
|
Fanatic Member
Join Date: Mar 01
Location: NZ
Posts: 935
![]() |
okay use the dropdown style
but to ensure only entrys on the list get used place in some auto search code ps maybe also a lil bit of validation the code i use for the purpose is as follows VB Code:
|
|
|
|
|
|
#10 |
|
Elite Member ®
Join Date: Aug 02
Location: RUH
Posts: 8,063
![]() ![]() |
hmm , Is this going to solve dropdown list problem , coz I had similar to that problem too !
|
|
|
|
|
|
#11 |
|
New Member
Join Date: Jun 06
Posts: 1
![]() |
Re: ComboBox and updating data
I experienced a similar error - when I add an item to the combobox's datasource, the display in the collection turns to "AssemblyName.ClassName". Here's how I overcame the bug:
cmbStudyTracks.DataSource = Nothing cmbStudyTracks.DataSource = _studyTracks cmbStudyTracks.DisplayMember = "Name" cmbStudyTracks.ValueMember = "ID" Works fine now. |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|