Search code examples
c#winformsvisual-studio-2010objectlistview

Extra line in ObjectListView


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


Solution

  • I use the ObjectListView. They look like the grouping lines. To get rid if them make sure that the ShowGroups property is set to false.