Professional UI Solutions
Site Map   /  Register


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 » Empty cells after reducing cell join. Collapse All
Subject Author Date
Eric Houvenaghel Sep 11, 2009 - 9:32 AM

I’m using CExtReportGridWnd.

At some point in time, cells are join (e.g. GridCellJoinSet(CSize(4, 1), 3, nRowNo); ).

At some other point in time the joins are reduced (e.g. GridCellJoinSet(CSize(4, 1), 3, nRowNo); to GridCellJoinSet(CSize(2, 1), 3, nRowNo); something like that).

Problem is that the cells that were part of the first joint are now empty?!?!

Any idea what gives?


Technical Support Sep 11, 2009 - 10:42 AM

The grid cell joining feature is incompatible with the grid sorting feature and report grid row grouping and column activation/deactivation features. If you deactivate all these features in the CExtReportGridWnd report grid control, then it will become absolutely similar to the CExtGridWnd simple plain grid control (see the SynchronizedGrids sample application). But it will support joining well.

Eric Houvenaghel Sep 11, 2009 - 11:05 AM


I’ve found a way to deal with the problem.

All the cell in the row have to be reset to CSize(1, 1) via the JoinSet method.

Only then can you apply the new join.

The only down side is that you need to loop through every column for every row iteration.