views:

276

answers:

0

Hi, I have a combobox derrived class which has a SelectedLookupItem property. This returns a LookupItem object. LookupItem is a MustInherit class.

I have a class that has a property whose return type is ChildLookupItem (a class derrived from LookupItem). When I set up binding to link the combo to this property, I get a FormatException "Cannot format the value to the desired type". I gather this is because the return type of the property isn't the same as the SelectedLookupItem property, even though it is of type LookupItem. This seems a bit strange to me... but anyway, it looks like I can add another parameter, formattingEnabled, set to True when setting up binding. This appears to work - but there doesn't seem to be much help relating to that parameter and I'm not sure of any adverse consequences... any help would be much appreciated!

:-)