Return characters in a datagrid column

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Return characters in a datagrid column

Post by phaworth » Fri May 07, 2010 8:03 pm

Some of the data I want to put into a datagrid table contains return characters. The datagrid interprets the return character as the end of a row of data. Is there some way to get the return character treated as part of the column data instead of a row terminator?
Thanks,
Pete

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Re: Return characters in a datagrid column

Post by trevordevore » Fri May 07, 2010 9:26 pm

Populate the data grid using an array rather than text. This means you set the dgData property as opposed to the dgText property.

Scroll down in this lesson to see an example:

How Do I Populate a Data Grid With Data?
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Post Reply