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=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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
