pradeepradyumna
pradeepradyumna

Reputation: 1072

C# Listview adds an extra column header in Details view

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

Answers (1)

oerkelens
oerkelens

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

Related Questions