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=80464 --- shadow/80464 2007-01-05 20:22:51.000000000 -0500 +++ shadow/80464.tmp.29981 2007-01-05 20:22:51.000000000 -0500 @@ -0,0 +1,61 @@ +Bug#: 80464 +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: Column not activated in DataGrid + +Observed: nothing is active + +Expected: second column in first row must be active + +Code: + +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 grid(); + DataSet dataSet1 = new DataSet(); + dataSet1.Tables.Add(); + dataSet1.Tables[0].Columns.Add(); + dataSet1.Tables[0].Columns.Add(); + dataGrid1.DataSource = dataSet1; + dataGrid1.DataMember = dataSet1.Tables[0].TableName; + dataGrid1.Dock = DockStyle.Fill; + Controls.Add(dataGrid1); + } + + protected override void OnActivated(System.EventArgs e) { + base.OnActivated(e); + SendKeys.Send("{Enter}"); + } +} + +class grid : DataGrid { + protected override bool ProcessCmdKey(ref Message msg, Keys +keyData) { + if (msg.WParam.ToInt32() == (int)Keys.Enter) { + SendKeys.Send("{Tab}"); + return true; + } + return base.ProcessCmdKey(ref msg, keyData); + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
