Author: toshok
Date: 2006-09-12 05:36:06 -0400 (Tue, 12 Sep 2006)
New Revision: 65284

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
Log:
2006-09-12  Chris Toshok  <[EMAIL PROTECTED]>

        * DataGrid.cs (get_ListManager): if the list_manager is null, try
        to create it using SetDataSource.  Fixes bug #79151.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-09-12 09:15:36 UTC (rev 65283)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-09-12 09:36:06 UTC (rev 65284)
@@ -1,3 +1,8 @@
+2006-09-12  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * DataGrid.cs (get_ListManager): if the list_manager is null, try
+       to create it using SetDataSource.  Fixes bug #79151.
+
 2006-09-11  Chris Toshok  <[EMAIL PROTECTED]>
 
        * XEventQueue.cs: add a DispatchIdle property.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs      
2006-09-12 09:15:36 UTC (rev 65283)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs      
2006-09-12 09:36:06 UTC (rev 65284)
@@ -659,7 +659,12 @@
                [Browsable(false)]
                [EditorBrowsable(EditorBrowsableState.Advanced)]
                protected internal CurrencyManager ListManager {
-                       get { return list_manager; }
+                       get {
+                               if (list_manager == null)
+                                       SetDataSource (DataSource, DataMember);
+
+                               return list_manager;
+                       }
                        set { throw new NotSupportedException ("Operation is 
not supported."); }
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to