pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From treponema <trepon...@orange.fr>
Subject How to set ListView data binding?
Date Mon, 13 Aug 2012 16:26:44 GMT
Hi,
I did not found how to bind a ListView to an ArrayList (although I found samples about TableViews).
If I use setListData with an ArrayList, the strings are displayed, but if the class has more
properties, can someone explains me how to tell the ListView which one to display, which one
is the key?
Thanks...

P.S. : For instance: A list of person objects (properties: id, name, age, ...), I would like
the ListView to display the name and return the id of the selected person.

Mime
View raw message