Page 1 of 1
Putting Records Into a Data grid?
Posted: Mon Dec 12, 2011 1:35 pm
by Mr LiveCode man
Hey guys, I've been able to put normal text and pictures into a data grid, but i need to put a record in with out having to manually put all the data in, does anyone know what i have to do to do this?
Any help would be appreciated
cheeeeers
P.S I'm using livecode 4.6.0
Re: Putting Records Into a Data grid?
Posted: Mon Dec 12, 2011 5:35 pm
by bangkok
What do you mean by "record" ?
Data coming from a database for instance ?
If yes, nothing special or different from regular text.
Code: Select all
put false into pFirstLineContainsHeaders
set the dgText [ pFirstLineContainsHeaders ] of group "myDataGrid" to myData
Re: Putting Records Into a Data grid?
Posted: Tue Dec 13, 2011 5:10 am
by marksmithhfx
bangkok wrote:What do you mean by "record" ?
Data coming from a database for instance ?
If yes, nothing special or different from regular text.
Code: Select all
put false into pFirstLineContainsHeaders
set the dgText [ pFirstLineContainsHeaders ] of group "myDataGrid" to myData
Bangkok, you may know this already but the above can be abbreviated to
Code: Select all
set the dgText of group "myDataGrid" to myData
This will work fine as long as you are using the default (false) setting for dgText.
-- Mark
Re: Putting Records Into a Data grid?
Posted: Tue Dec 13, 2011 10:49 am
by Mr LiveCode man
Thanks for that, i shall see if it works

By record i mean a 2-D array with different data types.
Cheeeers.
EDIT : I think that would work but I'm having trouble putting any data into the data grid. Is there something i need to do , to get the data grid to update with the new data?