Cell changed in dataGrid

Trevor DeVore lists at mangomultimedia.com
Wed Apr 29 13:20:00 EDT 2009


On Apr 29, 2009, at 1:08 PM, Yves COPPE wrote:

> Hello
>
> I have a table datagrid
> the user doubleclick a cell o chnage the numbre in the cell
> I'd like to know by script which is the row tha has been changed and  
> the new data of the whole row
>
> How can I do that ?

The CloseFieldEditor message. I discuss this in an email sent to the  
list that you can read here:

<http://article.gmane.org/gmane.comp.ide.revolution.user/122614/match=command+editvalue 
 >

In CloseFieldEditor you can check the dgIndex of the dgDataControl of  
the target and then use that index to grab any other data you need  
from the data grid.

on CloseFieldEditor pFieldEditor
     put the dgColumn of the target into theColumnThatWasEdited
     put the dgIndex of the dgDataControl of the target into  
theIndexThatWasEdited
     ....
end CloseFieldEditor

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com



More information about the use-livecode mailing list