|
-
Oct 9th, 2003, 09:20 AM
#1
Thread Starter
I wonder how many charact
Possible to set a LIstbox.Datasource to a collection?
I'm trying to set the datasource value of a listbox to a strongly-typed collection.
.DataSource = myVehicleCollection
.ValueMember = "Item"
.DisplayMember = "ToString"
The Item property in my collection returns a single vehicle.
On load of the form, I keep getting an error stating the ValueMember could not be set.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|