Alternating Column Colors?
zryip.theslug at gmail.com
Sat Jan 29 13:32:35 CST 2011
On Fri, Jan 28, 2011 at 10:55 PM, Scott Rossi <scott at tactilemedia.com> wrote:
> 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 "http://www.aslugontheroad.co.cc/index.php?option=com_phocadownload&view=category&download=20:experiment-020-change-colors-of-columns-and-cells&id=7:data-grid&Itemid=63"
As pointed out by Bob, this possible solution works only if the
datagrid has data.
-Zryip TheSlug- wish you the best! 8)
More information about the use-livecode