Page 1 of 1
wrap text in column in data grid
Posted: Fri Jun 26, 2015 10:39 pm
by ronniebellie
I have info from a MySQL populating a data grid with 4 columns. I need the 3rd and 4th column to wrap the text as each entry has many words. How do I get the columns to wrap the text?
Re: wrap text in column in data grid
Posted: Thu Jul 09, 2015 1:54 pm
by MaxV
In order to wrap text, you have to change row height, here the solution:
http://lessons.runrev.com/spaces/lesson ... e-Heights-
Re: wrap text in column in data grid
Posted: Thu Jul 09, 2015 7:06 pm
by sritcp
Hi Ronnie:
Please note that data grid "forms" can have varying row height but in data grid "tables" all rows have the same height (which you can set).
Thus, if you are using a table, and just a few of your rows have multi-line data, your rows will look fat (all of them) and the data grid will look strangely empty.
One way out is to have the cells display only the first line, but have a separate field that will display the entire contents of a cell when the cell is clicked on.
This way the data grid will look compact but the users will still have access to the multi-line content.
Regards,
Sri
Re: wrap text in column in data grid
Posted: Thu Jul 09, 2015 7:15 pm
by ronniebellie
Thanks for the update. I'm using a data grid table, and I'm showing just so of the first line. I've got my script set so that the rest of the data shows in a separate card. Seems to be working well.