0

I am using the ObjectListView, and I use the following code to add rows:

lvServiceClassInfo.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
            List<CPerson> list = new List<CPerson>();
            list.Add(new CPerson() { name = "a", wsdl = "abc" });
            list.Add(new CPerson() { name = "b", wsdl = "abc" });
            list.Add(new CPerson() { name = "c", wsdl = "abc" });
            lvServiceClassInfo.AddObjects(list);

But I have extra line between each row(the line with "a", with a horizontal bar across), how to get rid of it? enter image description here

4

2 回答 2

1

我使用对象列表视图。它们看起来像分组线。要摆脱它们,请确保 ShowGroups 属性设置为 false。

于 2012-10-27T08:41:10.957 回答
0

感谢@Codelgnoto,列表视图有一个名为 ShowGroups 的属性来隐藏栏:)

于 2012-10-27T08:40:30.740 回答