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=80054 --- shadow/80054 2006-11-26 09:33:29.000000000 -0500 +++ shadow/80054.tmp.6404 2006-11-26 09:33:29.000000000 -0500 @@ -0,0 +1,56 @@ +Bug#: 80054 +Product: Mono: Class Libraries +Version: 1.2 +OS: GNU/Linux [Other] +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: ArgumentException when moving focus + +When moving focus to/from a cell (textbox) in a DataGrid, an +ArgumentException is thrown: + +System.ArgumentException: '14' is not a valid value for 'Value'. 'Value' +should be between 'Minimum' and 'Maximum' + at System.Windows.Forms.ScrollBar.set_Value (Int32 value) [0x00000] + at (wrapper remoting-invoke-with-check) +System.Windows.Forms.ScrollBar:set_Value (int) + at System.Windows.Forms.TextBoxBase.CaretMoved (System.Object sender, +System.EventArgs e) [0x00000] + at System.Windows.Forms.TextBoxBase.ScrollToCaret () [0x00000] + at System.Windows.Forms.TextBoxBase.set_Text (System.String value) +[0x00000] + at System.Windows.Forms.TextBox.set_Text (System.String value) +[0x00000] + at System.Windows.Forms.DataGridTextBoxColumn.Edit +(System.Windows.Forms.CurrencyManager source, Int32 rowNum, Rectangle +bounds, Boolean _ro, System.String instantText, Boolean cellIsVisible) +[0x00000] + at System.Windows.Forms.DataGrid.Edit () [0x00000] + at System.Windows.Forms.DataGrid.ScrollToColumnInPixels (Int32 pixel) +[0x00000] + at System.Windows.Forms.DataGrid.EnsureCellVisibility (DataGridCell +cell) [0x00000] + at System.Windows.Forms.DataGrid.set_CurrentCell (DataGridCell value) +[0x00000] + at System.Windows.Forms.DataGrid.OnMouseDown +(System.Windows.Forms.MouseEventArgs e) [0x00000] + at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& +m) [0x00000] + at System.Windows.Forms.Control+ControlNativeWindow.WndProc +(System.Windows.Forms.Message& m) [0x00000] + at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, +IntPtr wParam, IntPtr lParam) [0x00000] + +To reproduce: +1. compile and run the attached code snippet. +2. follow the on-screen instructions in tab #1 and #2. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
