Creating datagrid column by script

André Bisseret andre.bisseret at
Sun Feb 13 03:12:04 EST 2011

Bonjour Pete,

put the dgProp["columns"] of grp "dataGrid1" into tCols
put cr & "YourColName" after line 4 of tCols -- or any other place
set the dgProp["columns"] of grp "dataGrid1" to tCols

-- set any property of the column : ---
set the dgColumnWidth["Stock Val."] of grp "dataGrid1" to "n"
set the dgColumnSortType["yourColName"] of grp "dataGrid1" to "numeric"

Best regards from Grenoble


Le 12 févr. 2011 à 21:25, Peter Haworth a écrit :

> Any advice on how to insert a column into a datagrid by script?  
> Pete Haworth

More information about the Use-livecode mailing list