[Mono-bugs] [Bug 80352][Wis] New - DataGrid row delete causes appl exit
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Dec 24 14:32:32 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=80352
--- shadow/80352 2006-12-24 14:32:32.000000000 -0500
+++ shadow/80352.tmp.14581 2006-12-24 14:32:32.000000000 -0500
@@ -0,0 +1,75 @@
+Bug#: 80352
+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: DataGrid row delete causes appl exit
+
+To reproduce:
+
+1. Run the code in MONO 1.2 .NET 2.0 profile in Windows XP with latest
+monocharge dlls
+
+2. Click in the black triangle before first row so that first row is
+selected
+
+3. Press Delete key
+
+4. Press Down arrow
+
+Observed:
+
+Application exits without any message.
+
+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);
+ }
+
+// if ProcessCmdKey is commented out problem does not occur
+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