combobox - bindingsource wizard problem VB8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emsik1001
    New Member
    • Dec 2007
    • 93

    combobox - bindingsource wizard problem VB8

    Hi

    I have used combobox and connected it to the bindingsource (using wizards)

    I have the following problem:

    if in the combo box I have 1, 2, 3, 4,5 and I want to change 1 to 4 the number 1 is automatically changed to 4 so I have 4,2,3,4,5 in the combox box.

    I will have to put some code to replace it back to original values, however on one of the forums somebody mentioned that when I use wizard additional unneded code is place which I just need to remove. Does anyone know how to remove it?

    Here's the link to this forum
    http://www.xtremevbtal k.com/showthread.php? t=296134

    Many thanks in advance
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    If you use a bindingsource, I'm not sure you can change the values in the combobox, unless you change the data source that it is bound to.

    What you might be able to do is make the DisplayMember different from the ValueMember.

    Why do you only need to temporarily make the "1" a "4"?

    Comment

    Working...