Feeding a custom class to a ListView
Posted on 2010-01-05
I have a ListView control where I initially just added ListViewItem whose content was populated from a custom class I wrote, called "IPrintDocument".
Now I would like to feed IPrintDocument instances as DataSource for those ListViewItems, telling the ListView which fields of the IPrintDocument will be displayed in each column; the reason I am doing this, is that when interacting with the ListView I need the original IPrintDocument class to go ahead with the application.
So, is there a way to keep the original class as DataSource of each ListView item?