Clone listview or filter them
Posted on 2006-06-19
I have a listview that I need to filter based on a combobox. The combobox text is associated with the tag for each row. I'd like to limit what is shown in the listview based on the combobox item selected.
Now I looked around briefly for a way to "filter" the listview but didn't find anything so I was going to try somethign different.
When I populate the listview I want to create a clone/copy of it. Then everytime the combobox index changes the original would replace the listview, and I would delete every row with a different tag from the combobox text.
But upon playing with this idea, I have not found a way to clone the listview to preserve the original data.