Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Problem with GridCellJoinSet Collapse All
Subject Author Date
Ulrich Heinicke Jun 12, 2008 - 8:01 AM

Hi,

i have a problem with the new function GridCellJoinSet. I insert the following lines in to my program:


    GridCellJoinSet(CSize(3, 1), 0L, 0L, 0, -1);

    GridCellJoinSet(CSize(4, 1), 1L, 0L, 0,  0);

    GridCellJoinSet(CSize(3, 1), 1L, 1L, 0,  0);

but i get:



So that’s wrong?


Ulrich

Technical Support Jun 13, 2008 - 4:48 AM

Please note all the underlying grid cells should also be initialized even though these cells are hidden. This is because of the hist-testing algorithm. You can use the CExtGridCellEx class for such cells, which is both compact and supports merging.

If CExtGridCellEx is not suitable for you, you can use any CExtGridCellEx-based class instead. In other words, you should use a class that supports cell merging. There is a CExtGCJ template class that adds this feature to any grid cell class and this template class is used as a base class for CExtGridCellEx (a parent of most of Prof-UIS grid cell classes). So, most of grid cells can be merged. The grid cell classes like CExtGridCellStringDM cannot be merged so you should use the CExtGCJ < CExtGridCellStringDM > template based type instead of CExtGridCellStringDM.