Author: ivanz
Date: 2008-01-21 21:49:19 -0500 (Mon, 21 Jan 2008)
New Revision: 93473

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
Log:
2008-01-22  Ivan N. Zlatev  <[EMAIL PROTECTED]>

         * PropertyGridView.cs: IsValueTypeGridItem should return true 
         for Arrays as well.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-01-22 02:03:03 UTC (rev 93472)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-01-22 02:49:19 UTC (rev 93473)
@@ -1,5 +1,10 @@
 2008-01-22  Ivan N. Zlatev  <[EMAIL PROTECTED]>
 
+        * PropertyGridView.cs: IsValueTypeGridItem should return true 
+        for Arrays as well.
+
+2008-01-22  Ivan N. Zlatev  <[EMAIL PROTECTED]>
+
         * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
          - Renamed GridEntry.SelectedObjects to TargetObjects to better
          reflect the property name role.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs  
    2008-01-22 02:03:03 UTC (rev 93472)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs  
    2008-01-22 02:49:19 UTC (rev 93473)
@@ -866,7 +866,8 @@
                private bool IsValueTypeGridItem (GridItem item)
                {
                        if (item != null && item.PropertyDescriptor != null && 
-                           item.PropertyDescriptor.PropertyType.IsValueType)
+                           (item.PropertyDescriptor.PropertyType.IsValueType ||
+                            item.PropertyDescriptor.PropertyType.IsArray))
                                return true;
                        return false;
                }

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

Reply via email to