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=78481 --- shadow/78481 2006-05-22 11:43:37.000000000 -0400 +++ shadow/78481.tmp.4902 2006-05-22 11:43:37.000000000 -0400 @@ -0,0 +1,68 @@ +Bug#: 78481 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: DataGrid: OnLeave() is incorrectly invoked when it gets focus + +There is a focus handling bug in DataGrid. Build the example below, run, +and click a grid cell. + +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +public class Test : Form +{ + public static void Main () + { + Application.Run (new Test ()); + } + + public Test () + { + DataGrid b = new DataGrid (); + b.Dock = DockStyle.Top; + DataTable table = new DataTable ("test"); + table.Columns.Add ("col1"); + table.Columns.Add ("col2"); + table.Rows.Add (new object [] {"foo", "bar"}); + b.DataSource = table; + b.Leave += delegate (object o, EventArgs e) { + Console.WriteLine ("+++ Leave +++"); + }; + CheckBox c = new CheckBox (); + c.Location = new Point (100, 100); + Controls.Add (b); + Controls.Add (c); + } +} + + +Actual Results: + +It prints "+++ Leave +++" whereas it actually gets focus. + +Expected Results: + +no Leave event. + +How often does this happen? + +consistently. + +Additional Information: + +If I understand correctly it kinda blocks bug #78363. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
