ListView的头不露面 [英] ListView Headers Don't Show Up
本文介绍了ListView的头不露面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做一个Windows移动应用程序6.1。
I am doing a windows mobile application 6.1.
我拖着在ListView,前往列以及添加列到我的列表视图。当我运行列表视图他们不露面。
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.
然后我试图通过C#code在页面加载与后续的code添加。
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?
推荐答案
您必须使用详细视图的列标题是可见的。
You must use detailed view for column headers to be visible.
listView1.View = View.Details;
如果that's没有问题,列标题可能会被隐藏在窗口systembar。
If that´s not the problem, column headers might be hidden behind windows systembar.
这篇关于ListView的头不露面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文