[Mono-bugs] [Bug 80281][Wis] New - Grid navigation changes dataset

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Dec 16 19:50:06 EST 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 kobruleht2 at hot.ee.

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

--- shadow/80281	2006-12-16 19:50:06.000000000 -0500
+++ shadow/80281.tmp.25960	2006-12-16 19:50:06.000000000 -0500
@@ -0,0 +1,73 @@
+Bug#: 80281
+Product: Mono: Class Libraries
+Version: 1.1
+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: Grid navigation changes dataset
+
+To reproduce:
+
+1. Run the code in MONO 1.2 .NET 2.0 profile in Windows XP
+
+2. Press Down arrow 3 times
+
+Observed:
+
+Window caption contains text "changed"
+
+Expected:
+
+Window caption must contain text "unchanged"
+
+Code to reproduce:
+
+using System.Windows.Forms;
+using System.Data;
+
+class TestForm : Form
+{
+    DataGrid dataGrid1;
+    DataSet d = new DataSet();
+        
+    static void Main()
+    {
+        Application.Run(new TestForm());
+    }
+
+    public TestForm()
+    {
+        InitializeComponent();
+        d.ReadXml("c:\\test.xml");
+        dataGrid1.DataSource = d;
+        dataGrid1.DataMember = "Table";
+        d.AcceptChanges();
+    }
+
+    private void InitializeComponent()
+    {
+        this.dataGrid1 = new System.Windows.Forms.DataGrid();
+        this.Controls.Add(this.dataGrid1);
+    }
+
+    
+protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
+            {
+        DataSet changes =d.GetChanges();
+        if (changes == null)
+            Text = "not changed";
+        else
+            Text = "changed";
+        return base.ProcessCmdKey(ref msg, keyData);
+    }
+}


More information about the mono-bugs mailing list