Page 1 of 1

Remove column behavior from datagrid

Posted: Thu May 03, 2012 8:17 pm
by seaniepie
Hi All,

I've got a data grid and I had the columns up in the inspector and accidentally hit the add button next to the column behaviour button at the bottom. Now the text in that column (the second one in) doesn't display. Is there any way to disable this column behavior?

Thanks

Sean

Re: Remove column behavior from datagrid

Posted: Thu May 03, 2012 10:23 pm
by shaosean
You will need to delete a couple things from the data grid. In the Application Browser you will see a data grid stack associated with your stack, look for the card with the data grid you want to modify. You will need to delete a button and a group. Let's say you called the column "moo" you will need to remove a group called "moo" (it has a text field item called "_ColumnData_") and a button called "moo Behavior"

Re: Remove column behavior from datagrid

Posted: Thu May 03, 2012 11:40 pm
by seaniepie
Perfect, Thanks Shaosean,

I also got this reply from the devsList:
By clicking on the inspector button, a group and a behavior button
have been created in the datagrid template.

The datagrid template is located in a substack created in your
project. The name of this substack begins with "Data Grid Templates"


For removing the column behavior, you have to:

1. Open the datagrid template substack in the application browser
2. In the template stack, locate the card containing the template of
your datagrid.
3. In each template card, you should have a group named "Row template"
containing a group named with the name of your column. Delete the
column group.
4. Inside the card you have also an invisible button which has the
column name with "Behavior" appended to it. Delete this invisible
button

The template stack contains one card by datagrids (+ 1 a background
card). If you have several datagrids in your project, you can locate
the right template card by using this command in the message box:
put the dgProps["row template"] of grp "myDatagrid"

where:
myDatagrid is the name of your data grid.

Best Regards,

--
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.com