Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox issues
Message
De
17/06/2004 16:18:41
 
 
À
17/06/2004 16:12:25
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00914754
Message ID:
00914789
Vues:
11
This message has been marked as the solution to the initial question of the thread.
Mike,

Just guessing as to whether this is causing the problem or not, but you should usually bind ComboBoxes to the .SelectedValue property. Try changing it to
        'bind combobox
        cboCell.DataBindings.Add(New Binding("SelectedValue", gTerminalTable, "cell"))
and see if that does the trick.

~~Bonnie


>DataGrid3.SetDataBinding(gTerminalTable, "")
>
> 'bind text boxes
> txtPart.DataBindings.Add(New Binding("text", gTerminalTable, "tpart"))
> txtTime.DataBindings.Add(New Binding("text", gTerminalTable, "ttime"))
>
> 'bind combobox
> cboCell.DataBindings.Add(New Binding("text", gTerminalTable, "cell"))
>
> cboCell.DataSource = gColorTable
> cboCell.DisplayMember = "Cell"
> cboCell.ValueMember = "Cell"
>
>
>
>The last three lines might be over the scope of this problem, but I am limiting the contents of the combobox to items currently in another table.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform