http://bugzilla.novell.com/show_bug.cgi?id=464493

User [email protected] added comment
http://bugzilla.novell.com/show_bug.cgi?id=464493#c6


[email protected] [email protected] 
<[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P5 - None                   |P2 - High
                 CC|                            |[email protected]
   Target Milestone|---                         |2.6.x
               Flag|                            |SHIP_STOPPER?




--- Comment #6 from [email protected] [email protected] 
<[email protected]>  2009-05-09 10:03:55 MDT ---
To simplify the test case:

[code]
            DataTable tableMain = new DataTable();
            tableMain.Columns.Add("AccountID", Type.GetType("System.Int32"));
            gridMain.DataSource = tableMain;
            gridMain.Columns[0].HeaderText = "aapje";
[/code]

Stacktrace:

rup...@linux:~/Desktop> mono WindowsFormsApplication1.exe

Unhandled Exception: System.ArgumentOutOfRangeException: Index is less than 0
or more than or equal to the list count.
Parameter name: index
0
  at System.Collections.ArrayList.ThrowNewArgumentOutOfRangeException
(System.String name, System.Object actual, System.String message) [0x00000] 
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] 
  at System.Windows.Forms.DataGridViewColumnCollection.get_Item (Int32 index)
[0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.DataGridViewColumnCollection:get_Item (int)
  at WindowsFormsApplication1.Form1..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) WindowsFormsApplication1.Form1:.ctor
()
  at WindowsFormsApplication1.Program.Main () [0x00000] 

It appears gridMain does not have any columns (so the tableMain was not
correctly associated with gridMain). I would think this is a major bug as the
Datasource property fails.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to