[Mono-bugs] [Bug 78691][Nor] New - ListView not drawing properly when HeaderStyle = None
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jun 22 09:29:10 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:29:10.000000000 -0400
+++ shadow/78691.tmp.5417 2006-06-22 09:29:10.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 78691
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: Windows XP SP1, Linux Slackware
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: kuba.brecka at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ListView not drawing properly when HeaderStyle = None
+
+Description of Problem:
+When you set these properties of a ListView:
+
+listView1.Columns.Add(this.columnHeader1);
+listView1.Columns.Add(this.columnHeader2);
+listView1.Columns.Add(this.columnHeader3);
+listView1.FullRowSelect = true;
+listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
+listView1.View = System.Windows.Forms.View.Details;
+
+then it isn't drawn properly (only one column instead of three) is drawn.
+What's interesting is that when you swap the last two commands,
+everything's fine then.
+
+Steps to reproduce the problem:
+1. add a ListView to a Form, add some columns, some Items (with subitems)
+2. set View to Details, HeaderStyle to None and FullRowSelect to true
+3. Now swap the HeaderStyle and View property assignments.
+
+Actual Results:
+Once the ListView is drawn correctly, then it isn't.
+
+Expected Results:
+ListView's appearance should not depends on the order of the properties
+assignments.
More information about the mono-bugs
mailing list