Page 1 of 1

DataGrid operation causes freeze of screen

Posted: Wed Jul 24, 2024 11:12 am
by CAsba
Hi all,
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
to hide all the columns (in order to then list the required columns).
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 ?

Re: DataGrid operation causes freeze of screen

Posted: Wed Jul 24, 2024 12:54 pm
by CAsba
Problem solved !!
I scripted

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
      set the dgColumnIsVisible ["discrec"] of grp "datagrid 3" to true
   end repeat
that is, I added an instruction to show a column, and works perfectly.