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=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: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+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);
+    }
+}
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to