DataGrid Custom Setup Scripting
Trevor DeVore
lists at mangomultimedia.com
Thu Nov 12 16:42:08 EST 2009
On Nov 12, 2009, at 4:33 PM, Mike Kerner wrote:
> The problem I'm having is that I want to write a script to custom-
> generate
> the datagrid on the fly. In particular, I would like to assign the
> number
> of columns and their headings on the fly. All the examples I've seen,
> though have this information pre-determined. Since I'm sucking data
> out of
> an ODBC data source, I won't know until runtime how many columns
> will be
> needed, or what their titles will be.
You can set the "columns" and "column labels" properties.
<http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7343-Data-Grid-Properties
>
set the dgProp["columns"] of group "DataGrid1" to ...
--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com
More information about the use-livecode
mailing list