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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
CAsba
Posts: 368
Joined: Fri Sep 30, 2022 12:11 pm

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

Post by CAsba » Mon Mar 06, 2023 1:56 pm

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?

stam
Posts: 2692
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

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

Post by stam » Mon Mar 06, 2023 3:15 pm

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.

CAsba
Posts: 368
Joined: Fri Sep 30, 2022 12:11 pm

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

Post by CAsba » Mon Mar 06, 2023 3:40 pm

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.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”