Click here to Skip to main content
14,665,095 members
Rate this:
Please Sign up or sign in to vote.
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 2:49am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100