Page 1 of 1

User to edit a column in a row in a datagrid table

Posted: Mon Mar 06, 2023 1:56 pm
by CAsba
Hi,
Is there a simple way to allow the user to edit just one datum, say, the postcode of an address, without having to re-enter the whole row again?

Re: User to edit a column in a row in a datagrid table

Posted: Mon Mar 06, 2023 3:15 pm
by stam
You can handle the built in method for inline editing if it's a table data grid (in other words, the user double clicks on a cell to edit it).
In either table or form data grids, you an dispatch setDataOfIndex (or setDataOfLine) with the index, the key and the new value to edit a single key.

HTH
S.

Re: User to edit a column in a row in a datagrid table

Posted: Mon Mar 06, 2023 3:40 pm
by CAsba
Hi,
Many thanks for that, Stam, I didn't know that. I'll test it when I'm able to make a new standalone, at the moment I can't do that as there is a bug in my package which Panos (Livecode support) is investigating.