Sometimes you run into a problem you just can't seem to find a solution for because the problem doesn't make sense.
Today I had such a problem. At home I'm working on a RSS reader home project. I have a listview to show all posts of a certain feed. Just before I fill the feed I clear the contents of the view. The listview is in details-view.
I used "listview.clear" to remove all items from the listview. But runtime I noticed that the listview remained empty while the items where added correctly. I didn't know it was that statement causing the problem, so where to start looking?
In these cases Google is my best friend and at the end I found the solution in a newsgroup.
The statement "listview.clear" also removes the column headers, that is why the listview apeared to remain empty. I had to clear the "items" collection of the listview in order to fix it, so I changed the code into "listview.items.clear" and everything worked fine again.