Zryp:
Ah, now I get it. Thanks for your patience.
Best,
Bill
William A. Prothero
https://earthlearningsolutions.org
> On Jun 16, 2020, at 2:11 PM, zryip theSlug via use-livecode
> wrote:
>
> Assuming the lesson you have taken in example is the following:
>
Assuming the lesson you have taken in example is the following:
http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table
Code for coloring rows is located in the button "My column default
behavior".
The code you shared is located in the "toggle line 3 color"
Zryp,
Crap, accidentally sent the response without finishing.
I was checking that the code in my test button was actually talking to the
datagrid in question, and it returned the correct values, so I assumed it was.
I don’t understand how “myBtn” would participate. I need to change colors from
Zryp,
What I wanted to do is make a distinction between data that was retrieved from
a database and data that was entered but not yet stored. A datagrid is. Way
overkill for what I’m doing, but the button that accesses the datagrid
data to get the specific line is for testing only.
Bill,
The example you mention is probably using a custom column behavior script
for accomplishing this.
Do you have copied the button in your project? The button must be linked to
your datagrid by using the following code:
set the dgProp["default column behavior"] of grp "myDatagrid" to the long