removing a corrupt datagrid control

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
jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

removing a corrupt datagrid control

Post by jalz » Sat Mar 08, 2014 2:17 am

Hi all,

I've got a couple of issues with the data grid control. I was trying to edit a row of a dg (as a form), and I saved the wrong. This created a data grid template stack in my application, which I can remove using the move stack option under file.

However I would like to remove the data grid on my layout and start with a fresh one, but when I click on it to remove it, it asks me whether I want to remove the associated template, which cannot be undone. I agree to this, however the data grid is still on my layout.

Is there a command I can use to delete a control off the layout?
Thanks

Jalz

jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Re: removing a corrupt datagrid control

Post by jalz » Sun Mar 09, 2014 12:59 am

I copied all the controls/objects from my layout excluding the corrupt data grid and recreated the card without it and deleted the other card with the dodgy data grid.

On another note, whenever I try editing a data grid template (as a form), I always seem to end up with a data grid templates xxxxxxx stack in my application browser. I would like my application to be as clean as possible, so is there a way of getting rid of this appearing in the browser and secondly is this a natural side effect when editing a row template or am I not editing the row correctly?

Thanks
Jalz

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: removing a corrupt datagrid control

Post by keram » Sun Mar 09, 2014 1:51 am

Hi Jalz,
jalz wrote: whenever I try editing a data grid template (as a form), I always seem to end up with a data grid templates xxxxxxx stack in my application browser.
As soon as you drag the data grid object to the stack a substack with data grid templates is created and 2 cards in that substack will be there. Both are needed - don't try to delete them.

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: removing a corrupt datagrid control

Post by sphere » Wed Jun 03, 2015 8:36 pm

Hello,

a similair problem i have, but then i want the datagrid removed as it gives an error Chunk:can't find background or somthing similair after giving an error after changing a columnname.
But even asking if you want to remove the attached template, the templates is still visible in the standalone settings.
If i add a new datagrid, the same error appears again.
So how can i remove the template, so that when i add a new datagrid the template is also 100% renewed, as it now seems to stay resident.

Thanks for any help on this.

Sphere

Post Reply