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 » Proportional cell resizing Collapse All
Subject Author Date
Marcelino Llopis Pascual Jun 23, 2011 - 7:50 AM

I have a grid with a variable number of columns and rows, and I’m trying to adjust all the cells to the grid (columns and rows), resizing them proportionally, so all the cells fit the grid. It works well with columns if I set de styles





but it doesn’t work with



How I can make the cells resize proportionally both the columns and rows at the same time?


Technical Support Jun 24, 2011 - 11:59 AM

You need the following styles __ESIS_STH_NONE | __ESIS_STV_NONE styles and __EGBS_BSE_EX_PROPORTIONAL_XY. Grid controls use header cells for keeping current column widths/row heights in pixels and proportional column widths/row heights. So, your grid control should have at least one header row at top and one header column on left. If you don’t need them, you should set their width/height to zero. These header areas should be initialized with header grid cells. That’s all. Please show us the entire grid initialization code so that we can try to check what’s wrong.

Technical Support Jun 23, 2011 - 1:10 PM

Proportional resizing works only when scrolling is disabled. The __ESIS_STH_NONE style disables horizontal scrolling. You should also disable vertical scrolling by using the __ESIS_STV_NONE style instead of __ESIS_STV_PIXEL.

Marcelino Llopis Pascual Jun 23, 2011 - 1:21 PM

As I mentioned before, if I use __ESIS_STH_NONE | __ESIS_STV_PIXEL, it works ok with the resizing of the columns but not with the rows.

If I use __ESIS_STH_NONE | __ESIS_STV_NONE, then the resizing of the columns doesn’t work, neither de rows.