Is there a reason why when using listview1.View = View.Details my list will expand (generate scrollbars) when adding elements, but have them invisible, but when I switch it to listview1.View = View.List , it works fine ?
I don't think this is really important, but here is the code I use to add items to the list:
ListViewItem item1 = new ListViewItem(file[1]); listView1.Items.Add(item1);
And the code of the auto-generated designer:
// // listView1 // this.listView1.CheckBoxes = true; this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.Path}); this.listView1.Location = new System.Drawing.Point(12, 44); this.listView1.Name = "listView1"; this.listView1.Size = new System.Drawing.Size(457, 354); this.listView1.TabIndex = 7; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = System.Windows.Forms.View.Details;
file is a string array containing about 50 odd characters in the first element (checked using the debugger).
source share