Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding Index of item in combobox
Message
From
23/01/2003 18:08:49
 
 
To
23/01/2003 18:00:10
David Bradford
Georgia Department of Revenue
Lawrenceville, Georgia, United States
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00744672
Message ID:
00744912
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
David,

If you bind the ComboBox to the myCar object, it has no affect on what the DataSource is for filling the Combo. Your ArrayList from tblVehicleTypes is just the Combo's DataSource, but it needs to be bound to something else (your myCar object) to reflect the value in the myCar vehicle type property. Am I missing something?

~~Bonnie


>I probably should have been more clear. First, the myCar object is something I'm using to pass data for the selected item from the grid to another form for editing. Second, the cboVehicleType ComboBox on the editing form is filled from a lookup table in the database, tblVehicleTypes. So I need to leave the cobVehicleType bound to the ArrayList from tblVehicleTypes, in case the user wants to change the VehicleType value as a part of the editing task. If I bind the ComboBox to the myCar object, the other values from the tblVehicleTypes would no longer be available as a selection from the ComboBox. Thanks, Bonnie, for taking time to respond to my post.
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