data grid code (color)
Sadhunathan Nadesan
sadhu at sddev.castandcrew.com
Tue Apr 14 20:58:07 EDT 2009
Trevor,
Your help is requested once more .. I'm stuck. I've been trying to
find a way to apply color to a single cell (or even to one line) of
a data grid, with your example and every other combination or syntax
variation or other thing I can think of, no luck so far.
Can you supply a line of code to replace the one setting the background
color below? (the rest of the code works).
Again, I am in your debt.
Thank you,
Sadhu
repeat with whichLine = 1 to the dgNumberOfLines of group "data grid 1" of card "data grid card"
put the dgIndexOfLine[whichLine] of group "data grid 1" of card "data grid card" into whichIndex
if (foundSSN) then
dispatch "SetDataOfIndex" to group "data grid 1" of card "data grid card" \
with whichIndex, "col 9", employeeSSN
else
dispatch "SetDataOfIndex" to group "data grid 1" of card "data grid card" \
with whichIndex, "col 9", "Not Found"
## set the backgroundColor of graphic 1 of me to "red" - generates an error
end if
end repeat
More information about the use-livecode
mailing list