General information
Title:
Subclass GRid in a container
I has a container that contain a grid with columncount = -1 and saved as a class name: CNTBASEGRID in TESTBASE.VCX
Now I create a new class based on CNTBASEGRID and change the COLUMNCOUNT to 3 and save it as CNTCHILDGRID in TESTBASE.VCX.
Here is the kicker or problem??????
set class to testbase.vcx
lo = create ('form')
lo.addobejct("grd","cntchildgrid")
lo.grd.visible = .t.
lo.show
Guess what
lo.grd.columncount has changed to 4 instead of 3
Seem like whenever I drop the CNTCHILDGRID to a form or a new class its added a new column to the grid. Any Idea? Try it yourself if you can reproduce it.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only