Alternating Column Colors?

zryip theSlug zryip.theslug at
Sat Jan 29 14:32:35 EST 2011

On Fri, Jan 28, 2011 at 10:55 PM, Scott Rossi <scott at> wrote:

Hi Scott,

> The data grid nicely incorporates alternating line colors.  But does anyone
> know if it's possible to make alternating column colors or cell colors?
> I'm building a control that has a horizontal scrolling data grid with only
> one row.  I'd like to be able to set alternating colors for cells or columns
> in the row.  Possible?

The datagrid object has no direct property for changing the color of a
column, but changing color of a cell or a column (in fact all the
cells of a column) is possible.

Here is an experiment demonstrating how to change the color of a cell,
a column and a column header:

go url ""

As pointed out by Bob, this possible solution works only if the
datagrid has data.

Best regards,
-Zryip TheSlug- wish you the best! 8)

More information about the Use-livecode mailing list