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 » Report grid - make last column extend all the way to the right Collapse All
Subject Author Date
Offer Har Sep 17, 2009 - 11:34 AM

Hi,


Our report has several columns that have almost limited text width, and a last column of free-text.


We would like that no matter what is the width of the window, or all other columns, the last column will always extend all the way to the right.


How can we do it?


Thanks,


Ron.

Technical Support Sep 18, 2009 - 2:43 PM

You wrote: I need to setup the width of all columns (not proportional) and just having the last column fill all the space that is left. Then, each time the width of one of the column changes, the last column’s width will change accordingly as well, and all the others will be left with the same width.
It looks we explained you how to do exactly the same. What is needed additionally? What is working not like you expect?



Technical Support Sep 18, 2009 - 3:40 AM

You should use the __ESIS_STH_NONE horizontal scrolling type which disables horizontal scrolling. This is required for the proportional resizing feature which is applied with the __EGBS_BSE_EX_PROPORTIONAL_COLUMN_WIDTHS style. All the columns will be resized proportionally. You should configure all the columns excepting the last one to use equal widths in pixels (CExtGridCell::ExtentSet()). Only the last column will be resized by the grid control automatically.

Offer Har Sep 18, 2009 - 5:00 AM

That’s close but not enough... I need to setup the width of all columns (not proportional) and just having the last column fill all the space that is left. Then, each time the width of one of the column changes, the last column’s width will change accordingly as well, and all the others will be left with the same width.