Page 1 of 1

Datagrid color woes

Posted: Wed Jun 13, 2012 5:32 am
by dunbarx
Datagrids are great and powerful. Like Oz.

But I cannot get some to respond to commands that others do without issue. I have several datagrids in one stack, and a single DG in another. If, in the stack with one DG:

set the dgProp["hilite color"] of grp "queue1 to "red"

and then:

set the dghilitedLines of grp "queue1" to 1,

the first line in that DG turns red. Terrific.

But if I try the exact same commands to a similarly named DG in the other stack, the correct line indeed hilites, but in a dull grey. No red at all.

What am I doing wrong? It has to be some property that is getting in the way, or one not properly set. There are only about a milllion of them.

Thanks.

Craig Newman

Re: Datagrid color woes

Posted: Wed Jun 13, 2012 7:38 am
by snm
Check if the grey hilited line table is selected (focused). The color of line hilite is changing to another color if you unfocus the grid.

Marek

Re: Datagrid color woes

Posted: Wed Jun 13, 2012 4:09 pm
by dunbarx
Marek.

That was it. Thank you. I have to set the dgFocus under script control every time I want to hilite a row with a color.

I thought that since I could set the row hilite, though it was dimmed (yet another property), the DG must have had focus.

Craig Newman

Re: Datagrid color woes

Posted: Wed Jun 13, 2012 11:11 pm
by snm
Craig,

Pleasure on my side I could help this time.

Marek