Editing a cell in a DataGrid

André Bisseret andre.bisseret at wanadoo.fr
Sat May 9 11:58:05 EDT 2015


> Le 9 mai 2015 à 16:08, Terence Heaford <t.heaford at icloud.com> a écrit :
> 
> I have enabled the editing of a particular column in a table.
> 
> I want to detect when editing of the cell has completed, obtain the line data and then update an SQLite database.
> 
> Is there a message that I can intercept that will advise me when cell editing is complete and perhaps give the line/row in question?
> 
> 
> All the best
> 
> Terry
> 

Bonjour Terry,

on closeFieldEditor
you could 
put the dgHilitedLines of group  «suchDG ino tLine
put the dgDataOfLine[tLine] of group  «suchDG" into tLineData
so can get tLineDataBque[«columName"]

Not sure that’s the best way, but seems that should do what your want 

HTH

best regards

André


More information about the use-livecode mailing list