[Mono-bugs] [Bug 78691][Nor] Changed - ListView not drawing properly when HeaderStyle = None
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jun 22 09:55:50 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by kuba.brecka at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78691
--- shadow/78691 2006-06-22 09:47:29.000000000 -0400
+++ shadow/78691.tmp.5855 2006-06-22 09:55:50.000000000 -0400
@@ -79,6 +79,57 @@
listView1.View = View.Details;
listView1.Items.Add (new ListViewItem ("test"));
Controls.Add (listView1);
}
}
+
+------- Additional Comments From kuba.brecka at gmail.com 2006-06-22 09:55 -------
+I confirm the bug. Here's the code to reproduce.
+If you swap the lines marked with an asterisk, you get different
+output (the correct one).
+
+using System;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+ public static void Main()
+ {
+ Application.Run(new Test());
+ }
+
+ public Test()
+ {
+ ListView listView1 = new ListView();
+ ColumnHeader columnHeader1 = new ColumnHeader();
+ columnHeader1.Text = "col1";
+ ColumnHeader columnHeader2 = new ColumnHeader();
+ columnHeader2.Text = "col2";
+ ColumnHeader columnHeader3 = new ColumnHeader();
+ columnHeader3.Text = "col3";
+
+ listView1.Columns.Add(columnHeader1);
+ listView1.Columns.Add(columnHeader2);
+ listView1.Columns.Add(columnHeader3);
+ listView1.FullRowSelect = true;
+ listView1.HeaderStyle = ColumnHeaderStyle.None; //*
+ listView1.View = View.Details; //*
+
+ listView1.Width = 300;
+
+ ListViewItem i;
+ i = new ListViewItem("test1");
+ i.SubItems.Add("test2");
+ i.SubItems.Add("test3");
+ listView1.Items.Add(i);
+
+ i = new ListViewItem("test4");
+ i.SubItems.Add("test5");
+ i.SubItems.Add("test6");
+ listView1.Items.Add(i);
+
+ Controls.Add(listView1);
+ }
+}
+
+
More information about the mono-bugs
mailing list