[Mono-bugs] [Bug 82572][Wis] New - DataGridView not visible in form

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 24 11:16:08 EDT 2007


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 kobruleht2 at hot.ee.

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

--- shadow/82572	2007-08-24 11:16:08.000000000 -0400
+++ shadow/82572.tmp.18858	2007-08-24 11:16:08.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 82572
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: kobruleht2 at hot.ee               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataGridView not visible in form
+
+Steps to reproduce:
+
+Run the code
+
+Observed: 
+
+Form containing grey area appears
+
+Expected:
+
+Form with datagridview should appear
+
+Code:
+
+using System.Windows.Forms;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+class Form1 : Form {
+	static void Main() {
+		Application.Run(new Form1());
+	}
+
+	DataGridView dataGridView = new DataGridView();
+
+	Form1() {
+		IList<Customer> list = new Customer[1];
+		dataGridView.DataSource = new BindingList<Customer>(list);
+		Controls.Add(dataGridView);
+	}
+}
+
+class Customer {
+	string name;
+	public string Name {
+		get { return name; }
+		set { name = value; }
+	}
+}


More information about the mono-bugs mailing list