Need to populate array into datagrid

Phil Davis phil at
Tue Aug 10 15:35:25 EDT 2021

Hi Skip,

First, make sure your array uses the format required by the datagrid. It
should be a numeric-indexed array, where each key (index) represents a
DG row (line), with that key's subkeys representing the DG columns of
the row.

set the dgData of grp "my grid" to tMyDataA

That's it!

It might be helpful to manually put a couple of lines of values into a
DG and then do something like this so you can have a visual depiction of
how the array should be organized:

-- in a test button
on mouseUp
   put the dgData of grp "my grid" into tDataA
end mouseUp

Phil Davis

On 8/10/21 11:52 AM, Skip Kimpel via use-livecode wrote:
> What is the best way to do this?  I have searched my old code, online
> results, etc and cannot find a clear cut answer.  Having said that, it has
> been a VERY long time since I have done this so I am part of the "use it or
> lose it" club right now.
> Any help would be greatly appreciated!
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Phil Davis

More information about the use-livecode mailing list