Mobile scroller - height of the datagrid
Posted: Thu Aug 31, 2017 10:33 am
Not sure if I set the height of the datagrid in a good way or not, for use in a mobile scroller. In some cases my datagrid will contain zero rows, and in some cases 200 rows (height > 1000 pixels). How do I change the height in a dynamic way?
^^ Doesn't seem to do the trick... I've tried with both the datagrid and the group that contains the datagrid.
The only way I can solve it, is by manually calculate the total height by rowheight * number of rows, and use
in openCard.
But are there any better ways?
Code: Select all
put (0,0,the formattedwidth of control pName,the formattedheight of control pName) into tRect
mobileControlSet pName, "contentRect", tRect
The only way I can solve it, is by manually calculate the total height by rowheight * number of rows, and use
Code: Select all
set the height of group "dgList" to iHeight
But are there any better ways?