Moiz
Moiz

Reputation: 77

Color updated Grid View cells in asp.net

I am creating one web application in ASP.NET. What I want is when the invoice is created and when the quantity or amount is changed in the GridView then the rows effecting that GridView cell should get a highlighted color for some seconds and then get back to normal as they were.

I just want to catch the eye of the user that the values changed.

Upvotes: 0

Views: 406

Answers (1)

Gibron
Gibron

Reputation: 1369

It appears that you want a variation of the answer to this question: How to change the gridview row colors in onclick event in javascript?

Rather than binding to the entire row, you would want to add the javascript function to an event associated with the quantity and amount field:

e.Row.Cells(x).attributes.add("onblur", "ChangeRowColor(this)");

Note: be careful here as onblur wont handle all changes. You might want to review Detect all changes to a <input type="text"> (immediately) using JQuery to detect all changes to your field.

Then in order to make your row "highlighted" you would find it easiest to use jQuery's Highlight effect.

Upvotes: 1

Related Questions