[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:47:29 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 atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78691

--- shadow/78691	2006-06-22 09:29:10.000000000 -0400
+++ shadow/78691.tmp.5706	2006-06-22 09:47:29.000000000 -0400
@@ -1,17 +1,17 @@
 Bug#: 78691
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: Windows XP SP1, Linux Slackware
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
-AssignedTo: peter at novonyx.com                            
+AssignedTo: mkestner at ximian.com                            
 ReportedBy: kuba.brecka at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: ListView not drawing properly when HeaderStyle = None
@@ -38,6 +38,47 @@
 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.
+
+------- Additional Comments From atsushi at ximian.com  2006-06-22 09:47 -------
+.NET also does not show 3 columns, and I think it is of course (as you
+explicitly set HeaderStyle as None). I only tried Mono on Windows but
+there was no difference between Mono and .NET (regardless of the order
+of property settings). Maybe you need fully reproducible code, or
+clarify what "Once the ListView is drawn correctly, then it isn't" means?
+
+Here is what I tried:
+
+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.Items.Add (new ListViewItem ("test"));
+                Controls.Add (listView1);
+        }
+}
+


More information about the mono-bugs mailing list