Hi All,
I have a custom ListView I’m working on. One of the functions/features I’m trying to integrate is to provide a list that shows only the most recently modified file that is returned.
For Example: Assume I retrieve the results below from a recursive search. It would only return one row for “gris.bmp” and that file would be the one dated 06/11/2011 because that’s the most recent date modified. Same concept would apply to the next file. There would be only one row for “negro.bmp” which would be 09/01/2009 in this case since all the file dates are the same so it wouldn’t matter which one was used.
I think I've wracked my brain too many times on possible solutions, so could use some help please! I've thought about creating another listview to do the filtering, using a collection object, creating simple text fields that store the most recent date and then copies them back to the listview, dumping all items on the list to array and then filtering the array and dumping back to the listview, etc. Any suggestions on how to tackle this problem would be most welcomed and appreciated. Sample code would be a big bonus but not expected...
I have a custom ListView I’m working on. One of the functions/features I’m trying to integrate is to provide a list that shows only the most recently modified file that is returned.
For Example: Assume I retrieve the results below from a recursive search. It would only return one row for “gris.bmp” and that file would be the one dated 06/11/2011 because that’s the most recent date modified. Same concept would apply to the next file. There would be only one row for “negro.bmp” which would be 09/01/2009 in this case since all the file dates are the same so it wouldn’t matter which one was used.
I think I've wracked my brain too many times on possible solutions, so could use some help please! I've thought about creating another listview to do the filtering, using a collection object, creating simple text fields that store the most recent date and then copies them back to the listview, dumping all items on the list to array and then filtering the array and dumping back to the listview, etc. Any suggestions on how to tackle this problem would be most welcomed and appreciated. Sample code would be a big bonus but not expected...