Datagrid Confusion

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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10304
Joined: Fri Feb 19, 2010 10:17 am

Datagrid Confusion

Post by richmond62 » Wed Aug 14, 2024 7:24 pm

The current dataGrid is popularly known as 'DataGrid 2', so I would be grateful if someone could tell me in which version
of LiveCode this was introduced and replaced the previous dataGrid?
Last edited by richmond62 on Thu Aug 15, 2024 12:00 pm, edited 1 time in total.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10079
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Datagrid Confusion

Post by FourthWorld » Wed Aug 14, 2024 8:33 pm

IIRC most of the enhancements in DG2 were for mobile, like slide-to-delete.

There was also a refinement to internal control references which allows one to effectively subclass the DG with behavior scripts. This may have been a matter of changing some of the "me" references to use the relatively new "this me", avoiding the misinterpretion in some contexts which had previously made DG1 problematic with behavior scripts. That specific change is just a guess; I haven't looked into the code or related enhancement requests deeply enough to confidently list specific changes.

One way to assess change anywhere in the product is to use the Advanced Search feature in the issue DB. The team generally does a good job of keeping that current, often easier than going through a series of Release Notes PDFs.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10304
Joined: Fri Feb 19, 2010 10:17 am

Re: Datagrid Confusion

Post by richmond62 » Thu Aug 15, 2024 12:01 pm

Thanks for that, but that doesn't actually answer my question.

An answer would be like this:

'DG1 was replaced by DG2 in LC version x.x.x' 8)

https://en.wikipedia.org/wiki/Analysis_paralysis

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10304
Joined: Fri Feb 19, 2010 10:17 am

Re: Datagrid Confusion

Post by richmond62 » Sun Jan 11, 2026 12:46 pm

So, here we are in 2026 (it's a new year: your mileage may vary), and no-one has answered what SHOULD be a very simple question:

At which version of LiveCode was DG1 replaced by DG2?

Is this true?
The datagrid 2 is still in development and will come with the new LC version 9.
https://www.forums.livecode.com/viewtopic.php?p=163725

SparkOut
Posts: 2980
Joined: Sun Sep 23, 2007 4:58 pm

Re: Datagrid Confusion

Post by SparkOut » Sun Jan 11, 2026 1:09 pm

This: https://youtu.be/qHTRX6D2N8U?si=xyYxAw12t4O5LbkO says it was v 9.dp-11

Not sure of the veracity. I'll see if I can dig out release notes


Although there's this forum post which seems to confirm 9.0.0.-dp11
viewtopic.php?f=9&t=30343

And although I can't access release notes, Ali Lloyd confirmed DG2 in this blog post relating to 9.0.0-dp11 https://legacy.livecode.com/livecode-9- ... l-preview/

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10304
Joined: Fri Feb 19, 2010 10:17 am

Re: Datagrid Confusion

Post by richmond62 » Sun Jan 11, 2026 1:38 pm

That'd be very kind of you.

I am wondering if one cannot import a DG1 into a more modern stack, such as LC 9.6.3 Open Source, or OpenXTalk.

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

Re: Datagrid Confusion

Post by Klaus » Sun Jan 11, 2026 2:57 pm

Could you please explain what you mean wiht "... import a DG1 into a more modern stack"?
To my knowledge a "Datagrid" is more or less just a bunch of behaviours attached to an "empty" group.

And of course a "Datagrid 1" is compatible with a "Datagrid 2", so I'm not sure what exactly you want to do.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10304
Joined: Fri Feb 19, 2010 10:17 am

Re: Datagrid Confusion

Post by richmond62 » Sun Jan 11, 2026 3:15 pm

Way back when I was given the impression that DG2 was a whole new creation rather than just DG1 with a few sexy tweaks.

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

Re: Datagrid Confusion

Post by Klaus » Sun Jan 11, 2026 3:22 pm

These "sexy tweaks" are only in the behaviour script(s).
So blame the one who gave you this impression! :-D

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10304
Joined: Fri Feb 19, 2010 10:17 am

Re: Datagrid Confusion

Post by richmond62 » Sun Jan 11, 2026 3:33 pm

Thanks for curing me. :lol:

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

Re: Datagrid Confusion

Post by Klaus » Sun Jan 11, 2026 3:43 pm

You are welcome!

Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 371
Joined: Mon Jun 10, 2013 1:32 pm

Re: Datagrid Confusion

Post by Lagi Pittas » Mon Jan 12, 2026 4:37 am

I just saw this and and asked Chatgpt who told me more than I wanted to know. Sometimes you have to be careful with the answers but on "what changed and when" questions it usually comes up with the goods. It seems to agree with sparkout.
Here’s what’s known about when **LiveCode’s datagrid “DG2” (the modern DataGrid control) appeared and replaced the older DG1**:

LiveCode introduced the updated DataGrid control (often referred to as **DataGrid2 or DG2**) during the development of **LiveCode 9**, specifically beginning with a **development preview build of LiveCode 9 (dp-11)** where DG2 first appeared. This version included new interactive features such as swipe actions, edit mode, and mobile enhancements that were part of the DG2 update. ([LiveCode][1])

**Key point:**
DG2 began shipping in **LiveCode 9 development preview builds (specifically dp-11)**. Many community discussions reference DG2 as being introduced with **LiveCode 9 dp-11** before the final 9.0.0 release. ([LiveCode Forums][2])

However, there is **no single official release where DG2 “completely replaced” DG1 as the only datagrid** in every context; DG1 objects and behavior scripts remain compatible and still work in later versions. The DG2 enhancements were introduced and became the default modern datagrid starting with the **LiveCode 9 line**. ([LiveCode Forums][3])

**Summary:**
• DG2 was introduced in **LiveCode 9**, first appearing in **LiveCode 9 dp-11** during the preview phase. ([LiveCode Forums][2])
• It became the modern datagrid implementation in the LiveCode 9 series. ([LiveCode][1])

If you need a specific version number for production stable releases where DG2 is included **by default**, LiveCode **9.0.0** (the first stable 9 release following dp-11) is the version where DG2 became generally available. ([LiveCode][1])

Let me know if you want direct links to the official release notes for those builds.

[1]: https://legacy.livecode.com/livecode-9- ... hatgpt.com "LiveCode 9 – the final preview"
[2]: viewtopic.php?t=30343&utm_source=chatgpt.com "DataGrid2 - What do you like, what don't you like"
[3]: viewtopic.php?t=39297&utm_source=chatgpt.com "Datagrid Confusion"

Post Reply