Sytze:
As I read you, you're setting the BackColor property directly for
columns 4, 5, and 6, and then doing a SetAll in the Init event. As you
note, the Init code wipes out your existing BackColors. Just set them
in the Init code, right after you do the SetAll.
Or Modify the SetAll to skip columns 4, 5, and 6. Your choice.
Dan Covill
San Diego
On 06/18/12 19:44, Sytze de Boer wrote:
> Hi folk
> With a grid, in the INIT event, I have set
> thisform.Grid1.SetAll("DynamicBackColor","IIF(GOMONTH(sysdate,-12)<pemp.sickanver,RGB(255,255,255),
> RGB(255,128,128))", "Column")
>
> There are some 10 columns in the grid, and 3 of them should be green
> So I have set the backcolor to 128,255,128 for column4, 5 and 6
>
> But the INIT event overrides this and the green doesn't show until
> you're at the end of the file and there's some grid "left over"
>
> Is there a way that I can have some columns in green ?
>
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.