[Mono-bugs] [Bug 80291][Wis] Changed - Unexpected exit in grid row selection
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Dec 17 19:01:49 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=80291
--- shadow/80291 2006-12-17 18:52:09.000000000 -0500
+++ shadow/80291.tmp.24848 2006-12-17 19:01:49.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 80291
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: Windows.Forms
AssignedTo: toshok at ximian.com
ReportedBy: kobruleht2 at hot.ee
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -27,6 +27,50 @@
Application exits without any message.
------- Additional Comments From kobruleht2 at hot.ee 2006-12-17 18:52 -------
Created an attachment (id=18322)
xml file used to create dataset
+
+------- Additional Comments From kobruleht2 at hot.ee 2006-12-17 19:01 -------
+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