Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox issues
Message
From
17/06/2004 16:18:41
 
 
To
17/06/2004 16:12:25
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00914754
Message ID:
00914789
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform