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=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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] TargetMilestone: --- @@ -27,6 +27,50 @@ Application exits without any message. ------- Additional Comments From [EMAIL PROTECTED] 2006-12-17 18:52 ------- Created an attachment (id=18322) xml file used to create dataset + +------- Additional Comments From [EMAIL PROTECTED] 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); + } +} + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
