ba272
asked on
Trying to add an object to a ListView
Greetings,
When using a ListBox, I add the obejct to the list, and the ToString() function of the object is called to get the text which should be displayed in the ListBox for that item. Does a ListView have anything like that?
I have made a work-around, which I don't like. I need to have a parallel list which I change when the user has made a change to the items in the ListView. But I'd rather store the object inside the ListView.
Does anybody know how I can do this?
Thanks,
Bob
When using a ListBox, I add the obejct to the list, and the ToString() function of the object is called to get the text which should be displayed in the ListBox for that item. Does a ListView have anything like that?
I have made a work-around, which I don't like. I need to have a parallel list which I change when the user has made a change to the items in the ListView. But I'd rather store the object inside the ListView.
Does anybody know how I can do this?
Thanks,
Bob
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome :)
ASKER
Thanks,
Bob