I know it has already been discussed but I don't find a correct answer.
Is there is a way to trap the equivalent of "on closeField", but for a Datagrid (table) editable cell? I would like to know what row and cell has been modified.
I found:
Code: Select all
on closeFieldEditor pFEditor
put the dgHilitedIndexes of me into numIndex
put the dgDataOfIndex[numIndex] of me into tLine
...
end closeFieldEditor
1 - only the modified row is known, not the cell
2 - tLine (array) only contains the previous values of the DG line, not the ones after "closing" the cell.
Thank you.
@Klaus: it is the right time to answer a very simple built-in function and say "it's Livecode"