This message serves for Google indexing. It only includes the first message of each thread from technical forums. To see the entire thread, the solutions and the technical content related to each message, you need to log in by going to the main page. This can be done at http://www.universalthread.com. If you do not have an account, we encourage you to create one now and start participating in Microsoft .NET and SQL Server related technology forums, just to name a few. Our database contains nearly two millions valuable high end technical messages. Thanks for the generous contribution to everyone who participated on the site so far, including MVP, Microsoft employees and many other well known contributors. The valuable content of the Universal Thread has created a history of 16 years of high end technical content which has helped many consultants, developers and many others in the industry on a daily basis. The site also offers a subscription option that greatly enhances your site experience.


View message
From18/07/1997 18:33:53
Gil Velasquez #001171
Gilan Digital
Edmonton, Alberta, Canada
To  
All


If I have the following grid:

a b c d e f (fields)
___________
1|5|3|2|2|4 (field values)
1|5|3|2|2|4
3|2|1|4|3|5

and need to paint each different value with a different color as in:

1 = blue
2 = red
3 = yellow
4 = orange
5 = green

What command should I put on the init method of the grid? I've tried this:

thisform.Grid1.SetAll("dynamicbackcolor","IIF(a=0,RGB(100,100,100),RGB(255,255,255))","column")

But obviously, it affects the column backcolor of the whole grid depending on one field value.

What should I do?

Thanks in advance,
For every bug fixed, there is a bigger bug not yet discovered.