2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
authorJordi Mas i Hernandez <jordi@mono-cvs.ximian.com>
Tue, 19 Jul 2005 17:05:18 +0000 (17:05 -0000)
committerJordi Mas i Hernandez <jordi@mono-cvs.ximian.com>
Tue, 19 Jul 2005 17:05:18 +0000 (17:05 -0000)
* Binding.cs: Binding to properties should be case unsensitive

svn path=/trunk/mcs/; revision=47421

mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

index edb082541949d09a9a4ff202a3cf972a0a7b6336..1e06878feb083cf373e555ba132d7f0d3a1468c6 100644 (file)
@@ -123,14 +123,14 @@ namespace System.Windows.Forms {
                        if (control == this.control)
                                return;
 
-                       prop_desc = TypeDescriptor.GetProperties (control).Find (property_name, false);
-                       data_type = prop_desc.PropertyType; // Getting the PropertyType is kinda slow and it should never change, so it is cached
+                       prop_desc = TypeDescriptor.GetProperties (control).Find (property_name, true);                  
                        
                        if (prop_desc == null)
                                throw new ArgumentException (String.Concat ("Cannot bind to property '", property_name, "' on target control."));
                        if (prop_desc.IsReadOnly)
                                throw new ArgumentException (String.Concat ("Cannot bind to property '", property_name, "' because it is read only."));
-
+                               
+                       data_type = prop_desc.PropertyType; // Getting the PropertyType is kinda slow and it should never change, so it is cached
                        control.Validating += new CancelEventHandler (ControlValidatingHandler);
 
                        this.control = control;
index c5924b9ecff0253febb6af2eddaf2cf39b3fae97..ab56227d472aac6d2995c14dd55b5aa219115e01 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
+
+       * Binding.cs: Binding to properties should be case unsensitive
+
 2005-07-18 vlindos@nucleusys.com
 
        * DataGrid.cs: fixes setmember order