[Mono-bugs] [Bug 80107][Nor] New - CurrencyManager throws NullReferenceException
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Nov 30 18:13:35 EST 2006
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 mika.aalto at tut.fi.
http://bugzilla.ximian.com/show_bug.cgi?id=80107
--- shadow/80107 2006-11-30 18:13:35.000000000 -0500
+++ shadow/80107.tmp.7739 2006-11-30 18:13:35.000000000 -0500
@@ -0,0 +1,74 @@
+Bug#: 80107
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: mika.aalto at tut.fi
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CurrencyManager throws NullReferenceException
+
+Description of Problem:
+CurrencyManager throws NullReferenceException in SetDataSource method when
+datasource type is DataView.
+
+
+Steps to reproduce the problem:
+1. Set dataview as a datasource for datagrid.
+2. Set datatable with some test data to dataview Table-property.
+3. Run form.
+
+Actual Results:
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+ at System.Windows.Forms.CurrencyManager.SetDataSource (System.Object
+data_source) [0x00000]
+ at System.Windows.Forms.CurrencyManager..ctor (System.Object data_source)
+[0x00000]
+ at System.Windows.Forms.BindingContext.CreateBindingManager
+(System.Object data_source, System.String data_member) [0x00000]
+ at System.Windows.Forms.BindingContext.get_Item (System.Object
+data_source, System.String data_member) [0x00000]
+ at System.Windows.Forms.DataGrid.SetDataSource (System.Object source,
+System.String member, Boolean recreate_rows) [0x00000]
+ at System.Windows.Forms.DataGrid.SetDataSource (System.Object source,
+System.String member) [0x00000]
+ at System.Windows.Forms.DataGrid.get_ListManager () [0x00000]
+ at System.Windows.Forms.DataGrid.get_RowsCount () [0x00000]
+ at System.Windows.Forms.DataGrid.CalcGridAreas () [0x00000]
+ at System.Windows.Forms.DataGrid.OnHandleCreated (System.EventArgs e)
+[0x00000]
+ at System.Windows.Forms.Control.CreateHandle () [0x00000]
+ at System.Windows.Forms.Control.CreateControl () [0x00000]
+ at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:CreateControl ()
+ at System.Windows.Forms.Control.CreateControl () [0x00000]
+ at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000]
+ at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000]
+ at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000]
+ at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:set_Visible (bool)
+ at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context) [0x00000]
+ at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [0x00000]
+ at DatagridTest.DatagridTest.Main () [0x00000]
+
+Expected Results:
+Datagrid is displayed with data in datatable.
+
+
+How often does this happen?
+Everytime
+
+
+Additional Information:
+Tested with subversion revision 68776.
More information about the mono-bugs
mailing list