Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

listview bound to class properties

$
0
0

Hallo, to all,

I have a custom class with only boolean properties. Now i also have a list containing copies of this class. I would like to know how i can bind a listview or list to it. However the difficult part is that i dont want the properties to appear as columns but as rows. I tried many things even swiping the rows and columns of a datagrid, but it only gave more troubles. I could fix the problem if i creat a class with only two properties one for the properties name and one for the boolean. Then i create a ListBox and bind to the list. However i cant serialize a List of Lists.

Who has any ideas?


Jc


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>