Click here to Skip to main content
14,767,556 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Symbol some ask time
usd 1.94545 1.9456 4/3/2014 11:54:11 AM
euro 1.45666 1.4555 4/3/2014 11:54:11 AM

this is the c# grid view format. the gridview row is every second changable when "some" (column) value increase i want row color is green degrease the some (column) value that the time i want row color red color. without sql db..
Updated 3-Apr-14 3:49am

1 solution

I believe you are asking for ASP.NET Grid View . Are the values getting updated automatically ? If yes, You can try to achieve this by using conditional Binding in grid View.

ASP.NET GridView provides the flexibility to use conditional binding expression where we can use some condition with bind expression. Depends on the evaluation value of the expression, ASP.NET GridView will render the content on page.

Conditional Binding Expression with ASP.NET GridView [^]

In your case, you can check the value with the field and apply some color to your grid as needed.

Hope this will help you.
Member 10718181 3-Apr-14 8:51am
This is c# grid view

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900