activex
asked on
ActiveX control with data properties
I am developing an ActiveX control.
I want to be able to bind the ActiveX control to a data control that will be used on the form on which this ActiveX control will be inserted.
How can I add the two properties 'DataSource' and 'DataField' to my ActiveX control so that the control can be bounded automatically to the data control.
I can only add a DataSource property but I don't know what code I should write for it.
Also, when I add a DataField property, the wizard does not accept such a property.
Please provide code.
Thank you.
I want to be able to bind the ActiveX control to a data control that will be used on the form on which this ActiveX control will be inserted.
How can I add the two properties 'DataSource' and 'DataField' to my ActiveX control so that the control can be bounded automatically to the data control.
I can only add a DataSource property but I don't know what code I should write for it.
Also, when I add a DataField property, the wizard does not accept such a property.
Please provide code.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No particular ideas except that the DataSource property is not singular (it is an object)!
ASKER
It helped much.
Just one problem:
I can get the name of the DataField by using Extender.DataField from within my control. However, I can not get the name of the DataSource. Any ideas?
Thank you in advance.