Page 1 of 1

Datagrid Confusion

Posted: Wed Aug 14, 2024 7:24 pm
by richmond62
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?

Re: Datagrid Confusion

Posted: Wed Aug 14, 2024 8:33 pm
by FourthWorld
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.

Re: Datagrid Confusion

Posted: Thu Aug 15, 2024 12:01 pm
by richmond62
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

Re: Datagrid Confusion

Posted: Sun Jan 11, 2026 12:46 pm
by richmond62
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

Re: Datagrid Confusion

Posted: Sun Jan 11, 2026 1:09 pm
by SparkOut
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/

Re: Datagrid Confusion

Posted: Sun Jan 11, 2026 1:38 pm
by richmond62
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.

Re: Datagrid Confusion

Posted: Sun Jan 11, 2026 2:57 pm
by Klaus
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.

Re: Datagrid Confusion

Posted: Sun Jan 11, 2026 3:15 pm
by richmond62
Way back when I was given the impression that DG2 was a whole new creation rather than just DG1 with a few sexy tweaks.

Re: Datagrid Confusion

Posted: Sun Jan 11, 2026 3:22 pm
by Klaus
These "sexy tweaks" are only in the behaviour script(s).
So blame the one who gave you this impression! :-D

Re: Datagrid Confusion

Posted: Sun Jan 11, 2026 3:33 pm
by richmond62
Thanks for curing me. :lol:

Re: Datagrid Confusion

Posted: Sun Jan 11, 2026 3:43 pm
by Klaus
You are welcome!

Re: Datagrid Confusion

Posted: Mon Jan 12, 2026 4:37 am
by Lagi Pittas
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"