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 » Bug in ItemCellJoinSet Collapse All
Subject Author Date
Offer Har Nov 24, 2011 - 8:35 AM

Dear Support,


We have a tree grid with 10 columns.  the left-most column displays the tree. We want to merge the next 9 columns.


We create the 10 cells using ItemSetCell, and then we join the cells by calling this line:



HTREEITEM htParent = GetTreeItemFromID(nParentID);
HTREEITEM htItem = ItemInsert(htParent);
CExtGridCellString* pCell = (CExtGridCellString*)ItemGetCell(htItem, 0, RUNTIME_CLASS(CExtGridCellString)); 
CExtGridCellString* pCell1 = (CExtGridCellString*)ItemGetCell(htItem, 1, RUNTIME_CLASS(CExtGridCellString));
for (int i=2; i<10; i++)
{
	ItemGetCell(htItem, i, RUNTIME_CLASS(CExtGridCellString));
}

ItemCellJoinSet(CSize(9,1), htItem, 1);

The problem is that it merges only 8 cells.... the left one is not merged (column 1)


Please send us a fix to this bug


Thanks,


Ron.

Technical Support Nov 28, 2011 - 1:44 PM

If the result count of joined columns should be 10, CSize::cx should be 10.

Offer Har Nov 30, 2011 - 12:26 AM

I want to see two column, so I merge 9 columns starting from column 1:


ItemCellJoinSet(CSize(9,1), htItem, 1);

So it should not be 10, but 9 - and the bug is still there.