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 General Discussion » CExtTreeGridWnd and row autosize Collapse All
Subject Author Date
Borremans Pierre Mar 26, 2010 - 4:55 AM

I use a CExtTreeGridWnd and I want when a child Item is too smal to resize it automaticaly. I try with the function BestFitRow but nothing change.


 


How to ? thanks

Technical Support Apr 8, 2010 - 9:57 AM

The grid controls do not resize the rows/columns automatically during initialization. You should invoke the CExtGridWnd::BestFitRow() method after initializing all the row cells.

Borremans Pierre Apr 12, 2010 - 6:12 AM

thanks with all reply I find the solution for my problem

Borremans Pierre Apr 2, 2010 - 2:11 AM

Ok but the option wrap text works only for text on two lines ? In my application the text is a file’s path.


Is it possible to have a text on more than two lines ?


 


thanks

Borremans Pierre Apr 2, 2010 - 2:16 AM

ok I find the solution for the wrap text problem

Technical Support Mar 26, 2010 - 11:48 AM

The variable row height feature requires two things:

1) The __EGBS_FIXED_SIZE_ROWS grid style must be absent.

2) The grid control should contain one outer header column on left and the CExtGridCellHeader grid cells should be instantiated in it. These header cells keep information about row heights. If you don’t need to see any outer header columns in your tree grid, then you can make the header column zero width using the CExtGridWnd::OuterColumnWidthSet() method.

Borremans Pierre Apr 7, 2010 - 5:52 AM

I try it and I can manualy resize the row but when I insert a new row or subitem, the new row is not automaticaly resizing