Color individual line DG

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
link76
Posts: 99
Joined: Fri Nov 04, 2011 1:52 pm

Color individual line DG

Post by link76 » Tue Sep 23, 2014 9:15 am

hello,

In my table datagird, I would you like to color a individual line, es:

Code: Select all

set the foregroundColor of line 3 of group "mydagrid" to "red"

.... 
thanks

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Color individual line DG

Post by dunbarx » Tue Sep 23, 2014 10:32 pm

Hi.

Datagrids don't quite work that way, though your attempt was sensible. Read page 165 in the DG User Guide. The controls and behaviors that comprise a DG require more effort than that of simple controls, like a field, where your code would have indeed worked.

It takes practice.

Craig Newman

Post Reply