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 [EMAIL PROTECTED]

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

--- shadow/81610        2007-05-14 05:08:28.000000000 -0400
+++ shadow/81610.tmp.24516      2007-05-14 05:08:28.000000000 -0400
@@ -0,0 +1,71 @@
+Bug#: 81610
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid default value in bound combobox 
+
+To reproduce:
+
+ 1. Run Code
+
+Observed:
+
+ combobox contains lower
+
+Expected:
+ 
+ combobox  should be empty
+
+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
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to