[Mono-bugs] [Bug 80647][Wis] New - Cut(), Copy(), Paste() not working in DataGrid

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jan 27 20:04:39 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=80647

--- shadow/80647	2007-01-27 20:04:39.000000000 -0500
+++ shadow/80647.tmp.18051	2007-01-27 20:04:39.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 80647
+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: Cut(), Copy(), Paste() not working in DataGrid
+
+Observed:
+
+1. First column contains 111111
+2. Cursor is not visible
+
+Expected:
+
+1. First column must be empty
+2. Cursor must be visible in second column
+
+ 
+Code to reproduce:
+
+using System.Windows.Forms;
+using System.Data;
+static class Program {
+	static void Main() {
+		Application.Run(new Frm());
+	}
+}
+
+class Frm : Form {
+	public Frm() {
+		DataGrid dataGrid1 = new DataGrid();
+		DataTable t = new DataTable();
+		t.Columns.Add();
+		t.Columns.Add();
+		t.Rows.Add("111111", "222222");
+		dataGrid1.DataSource = t;
+		dataGrid1.Dock = DockStyle.Fill;
+		Controls.Add(dataGrid1);
+	}
+
+	protected override void OnActivated(System.EventArgs e) {
+		base.OnActivated(e);
+		Control o = ActiveForm;
+		while (o is ContainerControl) {
+			ContainerControl oContainer = (ContainerControl)o;
+			o = oContainer.ActiveControl;
+		}
+		if (o != null && o is TextBox)
+			((TextBox)o).Cut();
+		SendKeys.SendWait("{TAB}");
+	}
+}
+
+
+Environment
+
+MONO 1.2 
+monocharge-20070110
+.NET 2 profile
+Windows XP SP2
+Visual C# Express 2005


More information about the mono-bugs mailing list