Re: Set Line color in dG?

2020-06-16 Thread William Prothero via use-livecode
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: >

Re: Set Line color in dG?

2020-06-16 Thread zryip theSlug via use-livecode
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"

Re: Set Line color in dG?

2020-06-16 Thread Prothero-ELS via use-livecode
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

Re: Set Line color in dG?

2020-06-16 Thread Prothero-ELS via use-livecode
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.

Re: Set Line color in dG?

2020-06-16 Thread zryip theSlug via use-livecode
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