Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Titre:
Trying to add my grid class to form class gives error
Versions des environnements
I have a grid class that uses the MemberClassLibrary and MemberClass properties. The MemberClassLibrary points to a prg where the column class is defined and it in turn relies on a HeaderClass that is also in the same prg.
I then drop this grid class on to a container class and set the column count to 2. The two columns appear as expected (using my MemberClass) and their headers are using the HeaderClass (again as expected).
Now when I try to drop this container onto a form class, I receive the following error:
"Cannot add this object to a grid"
My only options are OK and Help. The help says:
"You have attempted to execute the Grid.AddObject method to add an object other than a column to the grid.
You are trying to add an object to a column, rather than adding a column to the grid.
To add an object to a column, use the Grid.Column syntax with the AddObject method."
Any idea where I went wrong?
Thanks for all replies,
Mike
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement