| || |
Cannot interact with class derived from PropertyGr
Our C# application has a class which is derived from property grid declared internal to a namespace:
internal class CustomPropertyGrid : PropertyGrid
Unfortunately when I inspect the object in the Object Browser I am unable to see properties of the base-class PropertyGrid such as the wItems() collection. Attempting to access this collection in script fails as well.
Is this because the class is internal or because it is derived from PropertyGrid? Is there any way I can downcast my reference to the CustomPropertyGrid to PropertyGrid? What other options are available to me for automating this
Re: Cannot interact with class derived from PropertyGr
According to your post in the TestComplete newsgroup, you have solved the problem by using Object Mapping:
Let me know if this solution did not work as expected.