[Mono-bugs] [Bug 323111] DataGrid: Unexpected column in DataGrid with DataGridColumnStyle

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 11 17:47:58 EDT 2008


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

User mchristensen at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=323111#c1


Marc Christensen <mchristensen at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |mchristensen at novell.com




--- Comment #1 from Marc Christensen <mchristensen at novell.com>  2008-06-11 15:47:58 MDT ---
gert,

I compiled and ran your attached test case.  However, when checking the
checkbox, I get two columns (A and B) then when un-checking it, I get a
stacktrace.  Is this a new bug?

linux at c217:~/tmp/bug-323111> mono ./test2.exe 

Unhandled Exception: System.InvalidOperationException: The PropertyDescriptor
for this column is a null reference
  at System.Windows.Forms.DataGridColumnStyle.CheckValidDataSource
(System.Windows.Forms.CurrencyManager value) [0x00000] 
  at System.Windows.Forms.DataGridColumnStyle.SetDataGrid
(System.Windows.Forms.DataGrid value) [0x00000] 
  at System.Windows.Forms.DataGridColumnStyle.SetDataGridInColumn
(System.Windows.Forms.DataGrid value) [0x00000] 
  at System.Windows.Forms.DataGridTextBoxColumn.SetDataGridInColumn
(System.Windows.Forms.DataGrid value) [0x00000] 
  at System.Windows.Forms.DataGridColumnStyle.SetDataGridInternal
(System.Windows.Forms.DataGrid value) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.DataGridColumnStyle:SetDataGridInternal
(System.Windows.Forms.DataGrid)
  at System.Windows.Forms.DataGridTableStyle.set_DataGrid
(System.Windows.Forms.DataGrid value) [0x00000] 
  at System.Windows.Forms.GridTableStylesCollection.AddInternal
(System.Windows.Forms.DataGridTableStyle table) [0x00000] 
  at System.Windows.Forms.GridTableStylesCollection.Add
(System.Windows.Forms.DataGridTableStyle table) [0x00000] 
  at MainForm.Bind () [0x00000] 
  at MainForm.StylesCheck_CheckedChanged (System.Object sender,
System.EventArgs e) [0x00000] 
  at System.Windows.Forms.CheckBox.OnCheckedChanged (System.EventArgs e)
[0x00000] 
  at System.Windows.Forms.CheckBox.set_CheckState (CheckState value) [0x00000] 
  at System.Windows.Forms.CheckBox.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ButtonBase.OnMouseUp
(System.Windows.Forms.MouseEventArgs mevent) [0x00000] 
  at System.Windows.Forms.CheckBox.OnMouseUp
(System.Windows.Forms.MouseEventArgs mevent) [0x00000] 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(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] 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm)
[0x00000] 
  at MainForm.Main () [0x00000] 


-- 
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