Deleting a datagrid

Moderators: heatherlaine, robinmiller, kevinmiller, Zryip TheSlug

Post Reply
Rob van der Sloot
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Sat Apr 17, 2010 9:21 am

Deleting a datagrid

Post by Rob van der Sloot » Wed Feb 24, 2016 8:58 am

Hi all,

I am in the proces of developing an app where many datagrids are used to present data from a sql database.
In the developing proces I often like to delete a datagrid and start over again with a new one.
This works much nicer then to work the whole datagrid around all the time.
But deleting a datagrid is not always easy. Sometimes it works with the delete key on the keybpord, sometimes I have to do ctrl-x to cut it away, but also sometimes it just does not want to be deleted. Then I make it invisible, but thats not clean programming of course.
What is the best strategy to delete a datagrid? I can't find anything about that in the Datagrid Api.

Thanks
Rob van der Sloot

sphere
Posts: 615
Joined: Sat Sep 27, 2014 10:32 am
Location: the Netherlands

Re: Deleting a datagrid

Post by sphere » Tue Mar 15, 2016 3:22 pm

Maybe you can use deleteGroup as the datagrid is a group. Look in the dictionary.
cut the datagrid and it still resides, i don't know why, but you can still see it in the stacks tab of the standalone settings.

It's also fun when there is a fault in the datagrid -not-, i had it several times, i had to create a new stack and copy all except the datagrid.
I could not get rid of the fault.

i did not try deletegroup yet, let me know if it works.

Groetjes!
Please, stop quoting things my brother did not say. Thank you. Hans Zweistein.

Klaus
Posts: 9991
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Deleting a datagrid

Post by Klaus » Tue Mar 15, 2016 7:12 pm

Hi friends,

FYI: "deletegroup" is a message and not a command! 8)


Best

Klaus

sphere
Posts: 615
Joined: Sat Sep 27, 2014 10:32 am
Location: the Netherlands

Re: Deleting a datagrid

Post by sphere » Tue Mar 15, 2016 7:47 pm

Sch**sse.....

I guess i did not read it thorougly thru :oops: :oops:
Please, stop quoting things my brother did not say. Thank you. Hans Zweistein.

Post Reply

Return to “Data Grid Helper”