On Aug 24, 2:41 am, ohmmega <sho...@gmx.atwrote:
i would create a listview in detail mode with one columnheader. it's
just a workaround, but a possibility:
columnHeader1.Width = listView1.Width - 4;
listView1.Items.Add( new ListViewItem( new string[]
{"TEST1","INVISIBLE"} ) );
listView1.Items.Add( new ListViewItem( new string[]
{"TEST2","INVISIBLE"} ) );
how about it?
Great, thanks! To be a little clearer for future readers, this is
what I did:
this.listView1.Items.Clear();
this.listView1.View = View.Details;
this.listView1.Columns.Add("Name");
this.listView1.Columns[0].Width = this.listView1.Width -
4;
this.listView1.HeaderStyle = ColumnHeaderStyle.None;