Tuesday, April 15, 2003
Michael Hildner writes to report a bug with data binding when the combo box style is set to DropDownList:
Pretty sure this is a bug, but it may come in a couple flavors. See http://www.vbforums.com/showthread.php?s=&threadid=237548 for a little discussion.
A short description of the bug:
Setting the ComboBoxs DropDownStyle to DropDownList causes unexpected behavior. In my particular case, a data bound ComboBox does not update the DataSet. Works fine if you set the DropDownStyle to DropDown.
Steps to reproduce: Create a data bound ComboBox with its DropDownStyle set to DropDownList. Modify the data. Note the underlying DataSet does not get updated.
What happens: Nothing, unfortunately.
What should happen instead: The DataSet should get updated when a user changes the data in the ComboBox.
Any additional info such as code that demonstrates the problem, workarounds, etc.
Workaround: Manually through code, set the DataSets table/row/column to the Text property of the ComboBox.
Michael Hildner
Software Development Manager
Access Data (Magic) Inc.
www.sleuthsoftware.com
P:(505) 377-6757
F:(505) 377-3410
I've added this bug to the .NET Bugs Registry as #15.
11:19 PM
Content of this site is © Dejan Jelovic. All rights reserved.