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 » Grid question Collapse All
Subject Author Date
Ulrich Heinicke Mar 16, 2009 - 4:28 PM


i have some question for the grid.

1. If there are two outer rows at the top and one outer column at both side, then the edge wil be draw with 2 lines in the middle. Why?

2. How can i join these edge into one big cell (without the lines in the middle)?

3. It is possible to join the outer rows with the edge like this? This grid use the Grid from CodeProject, but i will make the same with your grid.




Technical Support Mar 18, 2009 - 7:22 AM

We are sorry, we wrote join command for two columns and one row:

m_wndGrid.GridCellJoinSet( CSize( 2, 1 ), 0L, 0L, -1, -1, true, true, true );
But we really meant one column and two rows:
m_wndGrid.GridCellJoinSet( CSize( 1, 2 ), 0L, 0L, -1, -1, true, true, true );
Please note, both grid cells inside this joined cell areas should be initialized. The grid cell objects can be any grid cell type based on the CExtGCJ template class (CExtGridCellHeader, CExtGridCellString CExtGridCellEx).

Technical Support Mar 17, 2009 - 10:16 AM

The incorrect borders of the header grid cells in the outer corner areas of the grid control is the known issue of the Office 2007 paint managers. We are working on it.

Yes it’s possible to join grid cells inside any outer area of the grid window: any side area, any corner area. Please note, the joined cell area must have all the grid cells initialized under joined area. You have two corner grid cells in the top left corner area of the grid window. To join them:

CExtGridWnd & wndGrid = . . .
wndGrid.GridCellJoinSet( CSize(1,2), 0, 0, -1, -1 );

Please take a look at the following test project:

Ulrich Heinicke Mar 17, 2009 - 4:06 PM

Thanks for joining the edge. But there is one question left. If you have one outer column left and one outer row top, then i want to join the top left edge with the first outer row cell at the top. I initialize the edge and the first outer row cell. Then i write:

m_wndGrid.GridCellJoinSet(CSize(2, 1), 0L, 0L, -1, -1, true, true, true);

But the GridCellJoinTest failed. Please tell me how i can do this.