Hieght of data grid, without scrollbars
Posted: Sat Jul 09, 2011 9:45 am
Hi there,
I am trying to get a data grid, for all intents and purposes, to re-size in height in the same fashion a text field does when fit content is selected.
I have a data grid inside a mobGUI scroller group. Set to form type. no scrollbars.
So at the moment i am testing with static content, a string on each row, some 20 rows.
So ok, i can set the height to suit at the moment.
But in the app the content will be generated by the user. So how can i get the data grid to re-size it's height dependent on the size of the content.
I can think of a way to script this. Count the number of rows present and multiply by my row height, then set the height to the answer.
Is this the only way to set the height of the grid when new content is generated...?
I am trying to get a data grid, for all intents and purposes, to re-size in height in the same fashion a text field does when fit content is selected.
I have a data grid inside a mobGUI scroller group. Set to form type. no scrollbars.
So at the moment i am testing with static content, a string on each row, some 20 rows.
So ok, i can set the height to suit at the moment.
But in the app the content will be generated by the user. So how can i get the data grid to re-size it's height dependent on the size of the content.
I can think of a way to script this. Count the number of rows present and multiply by my row height, then set the height to the answer.
Is this the only way to set the height of the grid when new content is generated...?