Data grid Header Alignments

Terence Heaford t.heaford at btinternet.com
Thu Nov 20 09:40:26 EST 2014


I note you can set the column alignments in a data grid in one line of code for all columns.

   set the dgProp["column alignments"] of me to tColAlignments

Is there a similar method for setting the Header Alignments in one line as say

   set the dgProp[“header alignments"] of me to tHeaderAlignments

or is the only way to set each column header individually as

   repeat with n = 1 to tNumOfColumns
      set dgHeaderAlignment [line n of tNewColNames] of me to item n of tHeaderAlignments
   end repeat

All the best

Terry


More information about the use-livecode mailing list