Need to populate array into datagrid

Mark Smith marksmithhfx at
Tue Aug 10 15:24:43 EDT 2021

Hi Skip, I’m not sure if this is what you are looking for but if you want to set the datagrid to display the data in an array you use:

set the dgData of group "DataGrid" to pDataArray

If your data is just delimited text you can use:

set the dgText of group "DataGrid" to pData

Either way tiggers the LayoutControl and FillInData handlers in the datagrid, so these need to be the same as (or be modified to meet) the structure of the incoming data.

There is more in the dictionary under dgData and dgText.


> On Aug 10, 2021, at 7:52 PM, Skip Kimpel via use-livecode <use-livecode at> 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:

More information about the use-livecode mailing list