* Binding.cs: When acquiring a BindingManagerBase for the first time,
check that the specified property actually exists in the data source,
and throw an ArgumentException if that's not the case - this is only
done for this scenario, since for later cases (such Position changes)
we throw different exceptions (match .Net).
svn path=/trunk/mcs/; revision=112277
if (manager == null) {
manager = control.BindingContext [data_source, binding_member_info.BindingPath];
+ if (manager.Position > -1 &&
+ TypeDescriptor.GetProperties (manager.Current).Find (binding_member_info.BindingField, true) == null)
+ throw new ArgumentException ("Cannot bind to property '" + binding_member_info.BindingField + "' on DataSource.",
+ "dataMember");
+
manager.AddBinding (this);
manager.PositionChanged += new EventHandler (PositionChangedHandler);
+2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * Binding.cs: When acquiring a BindingManagerBase for the first time,
+ check that the specified property actually exists in the data source,
+ and throw an ArgumentException if that's not the case - this is only
+ done for this scenario, since for later cases (such Position changes)
+ we throw different exceptions (match .Net).
+
2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
* ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,