Display multiple lines of data in a datagrid table cell

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dmartn
Posts: 1
Joined: Thu Jul 25, 2013 8:25 pm

Display multiple lines of data in a datagrid table cell

Post by dmartn » Thu Jul 25, 2013 9:41 pm

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.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display multiple lines of data in a datagrid table cell

Post by Klaus » Fri Jul 26, 2013 12:59 pm

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

Tester2
Posts: 102
Joined: Wed May 18, 2011 7:02 pm

Re: Display multiple lines of data in a datagrid table cell

Post by Tester2 » Tue Nov 12, 2013 2:22 am

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display multiple lines of data in a datagrid table cell

Post by Klaus » Tue Nov 12, 2013 11:35 am

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-

Tester2
Posts: 102
Joined: Wed May 18, 2011 7:02 pm

Re: Display multiple lines of data in a datagrid table cell

Post by Tester2 » Wed Nov 13, 2013 10:54 pm

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!

Post Reply