I'm using the following code
Code: Select all
dispatch "ResetList" to group "DataGrid 3" of cd "manage products"
put the dgprops["columns"] of grp "datagrid 3" into tColumns
repeat for each line tColumn in tColumns
set the dgColumnIsVisible[tColumn] of grp "datagrid 3" to false
end repeat
The columns are hidden, but the screen freezes - there is a cursor, still movable,
but clicking on anything does not work, similarly, keyboard shortcuts do not work.
To recover, I have used ctrl-alt-del.
Is there something I could add to the code to stop this happening ?