Combobox databinding bug in VS.Net 2005

G

Grant Morgan

Hi

Using the RTM version of VS.Net Professional 2005 downloaded from MSDN.
Designing a windows form app in Visual Basic. I have the following data
structure:

Orders Table:
=========
OrderID
OrderTypeID
Date
etc...

OrderType Table:
=============
OrderTypeID
OrderTypeDescription

I've set a combo box bound to the Orders.OrderTypeID field, with values
taken from OrderType table - value member set to OrderType.OrderTypeID,
display member set to OrderType.OrderTypeDescription. Everything is working
OK, and the correct OrderTypeID value is stored in the Orders.OrderTypeID
field. However, after you've used the combo box and selected a new value,
when you go back to the combobox the previously selected value is duplicated
in the list, and has replaced one of the other list items...

Example:
==================================
Initial ComboBox items:
----------------------
Order Pick
EDI Order
Adjustment
Return
----------------------
I change the combobox selection from Order Pick to Return, and exit the
combobox. I go back to the combobox, and the items are now:
----------------------
Order Pick
EDI Order
Return
Return
----------------------

If this in unclear, I can send sample code.

Regards

Grant Morgan
 
J

Jeffrey Tan[MSFT]

Hi Grant,

Thanks for your post.

Yes, I think I understand your problem. But for efficiency reason, I
suggest you post a little sample project to demonstrate this issue. Note:
it is better give rid of the database dependency if possible.

You can attach the sample project in further reply. If you can not
successfully do this, you can try to send it to me at:
(e-mail address removed)(remove "online."). I strongly encourage you to
do the latter for benifiting the entire community. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi Grant,

Have you managed to create a sample project? Is your problem resovled?
Please feel free to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Ok, I will wait for your feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Grant Morgan

Hi Jeffrey

I removed the database dependancy and couldn't reproduce the problem...

Maybe I've missed something - I'll go over it and repost if I confirm the
problem.

Cheers
Grant
 
J

Jeffrey Tan[MSFT]

Hi Grant,

Ok, I think you may check if the ADO.net side has populated the
DataTable/DataSet data correctly. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top