[Mono-bugs] [Bug 80462][Wis] New - DataGrid row delete crashes application

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 5 18:44:28 EST 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=80462

--- shadow/80462	2007-01-05 18:44:28.000000000 -0500
+++ shadow/80462.tmp.28946	2007-01-05 18:44:28.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 80462
+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 crashes application
+
+Observed: Application exists, mono process remains running in Task Manager
+
+Expected: rows 1 and 2 must be deleted
+
+
+Code:
+
+using System.Windows.Forms;
+using System.Data;
+static class Program
+{
+	static void Main()
+	{
+		Application.Run(new Frm());
+	}
+}
+
+class Frm : Form
+{
+	public Frm()
+	{
+		DataTable table = new DataTable();
+		table.Columns.Add(new DataColumn());
+		DataGrid grid = new DataGrid();
+		table.Rows.Add("1");
+		table.Rows.Add("2");
+		table.Rows.Add("3");
+		table.Rows.Add("4");
+		table.Rows.Add("5");
+		grid.Dock = DockStyle.Fill;
+		grid.DataSource = table;
+		Controls.Add(grid);
+	}
+
+	protected override void OnActivated(System.EventArgs e) {
+		base.OnActivated(e);
+		SendKeys.SendWait("+{DOWN}{DEL}");
+	}
+}


More information about the mono-bugs mailing list