Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Row color based on one column in that row
Message
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00650121
Message ID:
00650209
Views:
19
>How do I do this?

If you mean to make the row backcolor be different depending on the field value (myField) value in one of the columns you may use

* Grid.Init
this.SetAll("DynamicBackColor", "IIF(myfield = selectedvalue, RGB(255,0,0), RGB(255,255,255)", Column")

If you need more than one color to distinguish the records you may write nested IIF or call the function in DynamicBackColor expression which will analyze the values and return the desired color.

BTW, if Aaaaaaum Aaaaaaum is not your real name, note that it is a rule on Universal Thread to use your real name for the account.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform