[Mono-bugs] [Bug 78420][Nor] New - DataGrid throws exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 16 12:39:08 EDT 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 les42_1 at hotmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78420

--- shadow/78420	2006-05-16 12:39:08.000000000 -0400
+++ shadow/78420.tmp.23007	2006-05-16 12:39:08.000000000 -0400
@@ -0,0 +1,61 @@
+Bug#: 78420
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Centos 4.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: les42_1 at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataGrid throws exception
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+In the latest svn & linux, PropertyDescriptorCollection throws the
+following exception -
+-----------------------------------------------------------------
+Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
+Parameter name: name
+in <0x001ad> System.ComponentModel.PropertyDescriptorCollection:Find
+(System.String name, Boolean ignoreCase)
+in <0x00321> System.Windows.Forms.DataGrid:GetDataSource (System.Object
+source, System.String member)
+in <0x00046> System.Windows.Forms.DataGrid:SetDataMember (System.String member)
+in <0x00022> System.Windows.Forms.DataGrid:SetDataBinding (System.Object
+dataSource, System.String dataMember)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.DataGrid:SetDataBinding (object,string)
+in <0x00039> MONO_testApp.Form1:.ctor ()
+in (wrapper remoting-invoke-with-check) MONO_testApp.Form1:.ctor ()
+in <0x00018> MONO_testApp.Form1:Main ()
+-----------------------------------------------------------------
+
+This can be tracked down to a line of code in DataGrid.SetDataBinding()
+that says, "dataMember = null;". Commenting this line out seems to work.
+
+
+Steps to reproduce the problem:
+1. build and run the attached Form1.cs
+2. 
+3. 
+
+Actual Results:
+System.ArgumentNullException is thrown for the DataGrid
+
+Expected Results:
+No System.ArgumentNullException is thrown for the DataGrid
+
+How often does this happen? 
+always
+
+Additional Information:
+Using the latest from svn. The code runs on windows.


More information about the mono-bugs mailing list