Updating a single Data Grid cell

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
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Updating a single Data Grid cell

Post by townsend » Wed Dec 04, 2013 1:20 am

I need to update 1 field in a Data Grid. This code works:

Code: Select all

     put the dgDataOfLine[1] of group "my.grid" into aTemp
     put "13/12/03" into aTemp["Date"]
     set the dgDataOfLine[1] of group "my.grid" to aTemp
But it seems a little inefficient, removing and replacing the whole line.
Can I update that one cell directly with one line of code?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Updating a single Data Grid cell

Post by Klaus » Wed Dec 04, 2013 12:39 pm

Hi townsend,
townsend wrote:Can I update that one cell directly with one line of code?
No, your script is the only solution.


Best

Klaus

Post Reply