[Mono-bugs] [Bug 323053] DataGrid: Arrow and Tab keys not working

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 17 14:14:39 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=323053

User nagappan at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=323053#c2





--- Comment #2 from Nagappan A <nagappan at gmail.com>  2008-09-17 12:14:39 MDT ---
Created an attachment (id=240128)
 --> (https://bugzilla.novell.com/attachment.cgi?id=240128)
Proposed patch

The attached patch fixes the crash. But I notice:

1) always the first row / first column value is null. If I select that, I get a
warning window, saying that "Exception of type
'System.Data.NoNullAllowedException' was thrown. Do you wish to correct the
value?".
2) When I press tab in second column with this test say, I have 5 rows and each
of them has a value. If I navigate back in row 2 and column 2 using tab key,
the previous column value is getting stored and further pressing tab, I get a
warning window "Column 'Column2' us constrained to be unique. Value 'b' is
already present. Do you wish to correct the value?"
3) If I press No in procedure 2, I get:

System.IndexOutOfRangeException: Array index is out of range.
  at System.Windows.Forms.DataGrid.InvalidateRowHeader (Int32 row) [0x0002c] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:3143 
  at System.Windows.Forms.DataGrid.EndEdit
(System.Windows.Forms.DataGridColumnStyle gridColumn, Int32 rowNumber, Boolean
shouldAbort) [0x0006b] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:1075 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.DataGrid:EndEdit
(System.Windows.Forms.DataGridColumnStyle,int,bool)
  at System.Windows.Forms.DataGrid.EndEdit () [0x0003c] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:2501 
  at System.Windows.Forms.DataGrid.ScrollToColumnInPixels (Int32 pixel)
[0x0007e] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:2548 
  at System.Windows.Forms.DataGrid.EnsureCellVisibility (DataGridCell cell)
[0x00053] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:2260 
  at System.Windows.Forms.DataGrid.set_CurrentCell (DataGridCell value)
[0x00216] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:533 
  at System.Windows.Forms.DataGrid.ProcessGridKey
(System.Windows.Forms.KeyEventArgs ke) [0x001de] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:1871 
  at System.Windows.Forms.DataGrid.ProcessKeyPreview
(System.Windows.Forms.Message& m) [0x00028] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:1994 
  at System.Windows.Forms.Control.ProcessKeyPreview
(System.Windows.Forms.Message& m) [0x0000b] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4743 
  at System.Windows.Forms.DataGridTextBox.ProcessKeyMessage
(System.Windows.Forms.Message& m) [0x000fe] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBox.cs:126 
  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message& m)
[0x0003e] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs:1535 
  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m)
[0x000d0] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs:606 
  at System.Windows.Forms.DataGridTextBox.WndProc
(System.Windows.Forms.Message& m) [0x00031] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBox.cs:149 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:228 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:209 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00085] in
/home/nags/work/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242 


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list