Link to home
Start Free TrialLog in
Avatar of ba272
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

ASKER CERTIFIED SOLUTION
Avatar of _Katka_
_Katka_
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ba272
ba272

ASKER

Great idea.

Thanks,
Bob
You're welcome :)