Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box
Message
From
24/02/2003 12:09:37
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Combo Box
Miscellaneous
Thread ID:
00757057
Message ID:
00757057
Views:
43
Hello all, I created an object that contains a display (string) property and a value (integer) property. Then I created a local array of this object, added values to it and then bound it to a combo box. If I want to change the display of one of the items, how can I do this? The array was local, so it is no longer available. If possible, I would to change the value without making the array global, changing the value there and then rebinding the object. Is it possible to change the display item in the combo without accessing the array? I have tried the following code. Thanks for the help.

strLine = "Blah"
lstData = me.lstRoutes.Items(intIndex)
lstData.DisplayData = strLine
Me.lstRoutes.Items(intIndex) = lstData


I also tried this:
strLine = "Blah"
Me.lstRoutes.Items(intIndex) = strLine
Randy Belcher
AFG Industries, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform