Hi,
I was looking for something like dgCreateColumn but couldn't find anything. I need to create some datagrid columns from a list. I know how to run the repeat statement I'm just looking for the create a column command. Has anybody done this? Thanks in advance.
Creating Datagrid columns from a list
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Creating Datagrid columns from a list
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: Creating Datagrid columns from a list
Hi Tom,
you need to set "the dgProp["columns"]" of your datagrid:
will overwrite existing columns however.
To ADD new columns do something like:
Best
Klaus
you need to set "the dgProp["columns"]" of your datagrid:
Code: Select all
set the dgProp["columns"] of group "Data Grid" to cr_delimited_list_of_column_names
To ADD new columns do something like:
Code: Select all
put the dgProp["columns"] of group "Data Grid" to into columns_old
put columns_old & CR & cr_delimited_list_of_column_names into columns_new
set the dgProp["columns"] of group "Data Grid" to columns_new
Klaus
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA