通过调节View属性可实现,例如:
this.listView1.View = View.Details;
this.listView1.Columns.Add("name1", 65, HorizontalAlignment.Left);
this.listView1.Columns.Add("name2", 65, HorizontalAlignment.Left);
this.listView1.Columns.Add("name3", 65, HorizontalAlignment.Left);
this.listView1.Items.Add("1");
this.listView1.Items.Add("2");
this.listView1.Items.Add("3");
this.listView1.Items.Add("4");
this.listView1.Items[1].SubItems.Add("11"); |