dgText [true] question?

Trevor DeVore lists at mangomultimedia.com
Fri Apr 24 14:23:56 EDT 2009


On Apr 24, 2009, at 2:13 PM, David Bovill wrote:

> Yes - that's the issue. So now I'm trying to name the columns:
>
> set the uProps ["columns"] of the rev_DataGrid of me to columnNames

Use dgProps here.

> works, but Im not clear on the internal workings, so some things go  
> wrong.
> Fo instance trying to rename a column by script "clears" the column  
> data -
> presumably because the link to the dgDataA is no longer valid - all  
> I'd have
> to do is rename the keys in the dgDataA - or are their built ins for  
> this?

In the current version of the data grid setting the columns property  
doesn't map the previous columns to the new columns. That is being  
considered though. o rename a column use:

set the dgColumnName[OLD_NAME] of group "Data Grid" to NEW_NAME

You can read up on column props here:

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

Scroll down to the Column Properties section.

Regards,

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



More information about the use-livecode mailing list