Page 1 of 1
Display multiple lines of data in a datagrid table cell
Posted: Thu Jul 25, 2013 9:41 pm
by dmartn
Is it possible to display several lines of data within a single datagrid table cell? The data I am trying to display is a field from a mySQL database which contains a list of skills separated by returns. Is there a way to change the row behavior in the datagrid in such a way that the row height adjusts according to the number of lines of text in the cell? At the moment, only the first item in the list is placed in the cell; subsequent items are being placed on a separate row in the table.
Re: Display multiple lines of data in a datagrid table cell
Posted: Fri Jul 26, 2013 12:59 pm
by Klaus
Hi dmartn,
1. welcome to the forum
2. I'm afraid you need to have a datagrid of type FORM for this purpose.
TABLE datagrids can only display one line in their fields.
Best
Klaus
Re: Display multiple lines of data in a datagrid table cell
Posted: Tue Nov 12, 2013 2:22 am
by Tester2
Klaus,
How exactly do you show multiple lines of data in a single table cell?
Also, would this also work in a scrolling list field?
Thanks,
M
Re: Display multiple lines of data in a datagrid table cell
Posted: Tue Nov 12, 2013 11:35 am
by Klaus
Tester2 wrote:Klaus,
How exactly do you show multiple lines of data in a single table cell?
What part of this sentence did you not understand?
TABLE datagrids can only display one line in their fields.
Tester2 wrote:Also, would this also work in a scrolling list field?
No-
Re: Display multiple lines of data in a datagrid table cell
Posted: Wed Nov 13, 2013 10:54 pm
by Tester2
Klaus,
Sorry I misspoke. I meant to say "single
form cell", not "table".
I am new to working with these awesome objects.
I have a scrolling form datagrid working well now.
New Question:
Is there a way to change the background color on specific rows of my grid?
Ex: If I want row 1 and 5 to have a background color of white, but the other rows (2,3,4,6,7) to have background colors of red.
I tried this code, but it did not work:
set the backgroundcolor of line 2 of grp "DataGrid 1" of grp "Scroller" to 248,247,249
Thanks!