Link to home
Start Free TrialLog in
Avatar of activex
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.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of activex
activex

ASKER

Thank you for the answer.
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.
No particular ideas except that the DataSource property is not singular (it is an object)!