Display multiple lines of data in a datagrid table cell
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Display multiple lines of data in a datagrid table cell
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
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
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
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
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
What part of this sentence did you not understand?Tester2 wrote:Klaus,
How exactly do you show multiple lines of data in a single table cell?
TABLE datagrids can only display one line in their fields.
No-Tester2 wrote:Also, would this also work in a scrolling list field?
Re: Display multiple lines of data in a datagrid table cell
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!
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!