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
Datagrid column label
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Datagrid column label
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
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
Great thank you very much Klaus.