Page 1 of 1

Datagrid column label

Posted: Mon Jul 06, 2015 12:31 pm
by bsouthuk
Hi

I am trying to change a column label within a datagrid dynamically.

Does anybody know the code for this?

Your help is most appreciated.

Many thanks

Daniel

Re: Datagrid column label

Posted: Mon Jul 06, 2015 1:14 pm
by Klaus
Hi Daniel,

to GET and SET a CR delimited list of all curent column labels do this:
...
put the dgprops["column labels"] of grp "Your DG here" into tLabels
...
set the the dgprops["column labels"] of grp "Your DG here" to "Label ONE" & CR & "Label 2" & CR & "Label 3"
...

To get and set the label of a specific column:
...
put the dgColumnLabel["name of column here"] of grp "Your DG here" into tColumnLabel
...
set the dgColumnLabel["name of column here"] of grp "Your DG here" to "New label for the column"
...

All this is in the (only) DG docs, that you can get here: http://lessons.runrev.com/m/datagrid


Best

Klaus

Re: Datagrid column label

Posted: Mon Jul 06, 2015 1:26 pm
by bsouthuk
Great thank you very much Klaus.