Data grid

Trevor DeVore lists at mangomultimedia.com
Mon May 18 11:02:25 EDT 2009


On May 17, 2009, at 7:49 PM, Hershel Fisch wrote:

> First of all Thanks, I realize that if the dgText is set when a  
> columns
> visibility is set to false then I can NOT get the text of that cell or
> column, is that the way it supposed to be?
> In other words I have to..
> set the dgColumnIsVisible[column_name] of group "lst_fld"  to true
> Then set the dgText of group "data grid"
> set the dgColumnIsVisible[column_name] of group "lst_fld"  to false
> Other wise it doesn't pick up the text of that column or fld.

When setting the dgText property you can pass in the columns that each  
item in your data should map to. You do this by making row 1 the  
column names and setting pFirstLineContainsHeaders to true:

set the dgText [true] of group "DataGrid" to theTextWithColumnMappings

By doing this you don't have to worry about the visible state of the  
column.

<http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid/lessons/3461-Data-Grid-API 
 >

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com



More information about the use-livecode mailing list