Reputation: 1072
I have ListView, where I'm adding just 2 columns with some data. the view I have set is details view.When I run the application, I see a third column header in the end, which appears to be an extra column. So how can I avoid this third column/ column header coming in the output and just show 2 columns.
Upvotes: 0
Views: 1097
Reputation: 5161
My guess is that you do not see an extra column, but that your ListView simply is wider than your two columns.
Make sure your two columns take up all the space in your listview by either making them wider or setting up the last column (your second one) to use up all available horizontal space (something like width="*" or so).
Upvotes: 1