[Mono-bugs] [Bug 79265][Nor] Changed - DataGridView causes 100% CPU usage

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 30 12:56:29 EDT 2007


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=79265

--- shadow/79265	2006-11-04 11:58:24.000000000 -0500
+++ shadow/79265.tmp.11114	2007-04-30 12:56:29.000000000 -0400
@@ -65,6 +65,45 @@
 ------- Additional Comments From jackson at ximian.com  2006-09-05 11:22 -------
 Changing to the 2.0 milestone, since the datagridview is a 2.0 control.
 
 ------- Additional Comments From pedromj at gmail.com  2006-11-04 11:58 -------
 Please, make a sample without database that shows the bug. For example
 you can use XML/DataSet to feed the DataGridView.
+
+------- Additional Comments From kobruleht2 at hot.ee  2007-04-30 12:56 -------
+Here is code to reproduce the issue.
+
+using System.Windows.Forms;
+using System.Data;
+using System;
+using System.IO;
+
+static class Program {
+  static void Main() {
+      Application.Run(new Frm());
+  }
+}
+
+class Frm : Form {
+  public Frm() {
+
+    System.Data.DataSet dataSet1 = new DataSet();
+
+       StringReader strReader = new StringReader(@"<?xml 
+version=""1.0"" standalone=""yes""?>
+<NewDataSet>
+  <Table>
+    <kood>1           </kood>
+    <nimi>Firma ise, 1. 
+arveldusarve                                                      
+</nimi>
+  </Table>
+</NewDataSet>
+");
+    
+       dataSet1.ReadXml(strReader);
+    DataGridView dataGrid1 = new DataGridView();
+    Controls.Add(dataGrid1);
+    dataGrid1.AutoGenerateColumns = true;
+    dataGrid1.DataSource = dataSet1.Tables[0];
+  }
+}


More information about the mono-bugs mailing list