[Mono-bugs] [Bug 81612][Wis] New - To many rows in combobox dropdown list

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 14 05:17:06 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=81612

--- shadow/81612	2007-05-14 05:17:06.000000000 -0400
+++ shadow/81612.tmp.24647	2007-05-14 05:17:06.000000000 -0400
@@ -0,0 +1,72 @@
+Bug#: 81612
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+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: To many rows in combobox dropdown list
+
+To reproduce:
+
+1. Run code
+2. Open combobox dropdown list
+
+
+Observed: 
+  dropdown list contains approx 6 rows
+
+Expected: 
+   dropdown list should contain 2 rows
+
+
+using System.Windows.Forms;
+using System.Data;
+class testForm : Form {
+	ComboBox comboBox1;
+
+	testForm() {
+		DataTable t = new DataTable();
+		t.Columns.Add("displaymember");
+		t.Columns.Add("valuemember");
+		t.Rows.Add("lower", "a");
+		t.Rows.Add("upper", "A");
+
+		comboBox1 = new ComboBox();
+		comboBox1.DisplayMember = "displaymember";
+		comboBox1.ValueMember = "valuemember";
+		comboBox1.DataSource = t;
+		comboBox1.DataBindings.Add("SelectedValue", new bo
+(), "controlsrc");
+		TextBox tb = new TextBox();
+		tb.Top = 100;
+		Controls.AddRange(new Control[] { comboBox1, tb });
+	}
+
+	class bo {
+		string t;
+		public string controlsrc {
+			get { return t; }
+			set { t = value; }
+		}
+	}
+
+	static void Main() {
+		Application.Run(new testForm());
+	}
+}
+
+
+Environment:
+
+MONO 1.2.4 preview 2
+Windows XP SP2


More information about the mono-bugs mailing list