Stuarth
Jul 4th, 2000, 06:53 AM
I'm building an ActiveX control to enhance an existing data bound control (VSFlexGrid Pro) and wish to delegate the DataSource property to the constituent control.
Problem No. 1: 'DataSource' is not a valid object type, so cannot be used in the Get and Set declarations.
Problem No. 2: generic 'Object' data type can be used in the property declarations, but gives the error 'object does not support persistence' in the WriteProperties event.
I think I'd rather avoid using the DataBindings collection, because no property is bound to a specific field and so would be introducing unnecessary properties (unless there's a way around this?).
Does anybody know a 'standard' (or other!) solution to this problem?
Problem No. 1: 'DataSource' is not a valid object type, so cannot be used in the Get and Set declarations.
Problem No. 2: generic 'Object' data type can be used in the property declarations, but gives the error 'object does not support persistence' in the WriteProperties event.
I think I'd rather avoid using the DataBindings collection, because no property is bound to a specific field and so would be introducing unnecessary properties (unless there's a way around this?).
Does anybody know a 'standard' (or other!) solution to this problem?