Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ListView Headers Don't Show Up

I am doing a windows mobile application 6.1.

I dragged in a listview and went to columns and added columns to my list view. When I run the listview they do not show up.

I then tried to add them through C# code on page load with the follow code.

ColumnHeader header = new ColumnHeader();
            header.Text = "gkgag";
            header.Width = 100;
            header.TextAlign = HorizontalAlignment.Center;
            listView1.Columns.Add(header);

this does not work either. Why don't they show up?

like image 998
chobo2 Avatar asked Dec 20 '09 19:12

chobo2


1 Answers

You must use detailed view for column headers to be visible.


listView1.View = View.Details;

If that´s not the problem, column headers might be hidden behind windows systembar.

like image 170
Jens Granlund Avatar answered Nov 19 '22 20:11

Jens Granlund