I need to iterate throug all cells on each ListViewItem.
I know that I could use the underlying collection, but it doesnt fit my needs. The underlying collection doesnt know wich converters or format have been applied to each column, it also doesn't know which columns are being displayed and which are not, it
doesn't know which column header has been used for each property, and so on.
I know I could work with the underlying collection and apply every convertion-translation-filter-formating-sorting-headering again, but it doesn't appear to be practical. I just know that that I can see already displayed, is what I have and it is also what
I need. If I can see what I need, could be so hard to get it?
This is what I did just to notice what I have said (GetValue is a custom function that just gives the underlying property value):
(Object item in
PropertyInfo dataFields = item.GetType().GetProperties();
(GridViewColumn col in
//Get the name of field displayed on grid
strPath = ((Binding)col.DisplayMemberBinding).Path.Path;
//Get the field value
propValue = GetValue(item, source.Items, strPath);
The previous code doesn't fit my needs... I need something like:
View Complete Post