﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - WebGrid:  How to change to cell background color when a value is updated?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-How-to-change-to-cell-background-color-when-a-value-is-updated/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebGrid:  How to change to cell background color when a value is updated?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-How-to-change-to-cell-background-color-when-a-value-is-updated/</link><pubDate>Tue, 29 Dec 2009 22:19:11 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Jocelyn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;   &lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In order to set the cell's background color and bold the value, you need to use an OnAfterResponseProcess event. Here are the sample code:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnAfterResponseProcess(controlId, actionName, lastRequestObject, xmlResponseObject)
{
	var WebGrid1 = ISGetObject(controlId);

	WebGrid1.GetActiveEditCell().element.style.backgroundColor = "RED";
	WebGrid1.GetActiveEditCell().element.style.fontWeight = "BOLD";
		    
	return true;
}&lt;/pre&gt;
&lt;p&gt;         &lt;span style="font-size: 9pt"&gt;&amp;nbsp;I hope it helps and please, do not hesitate to ask if you have any other questions, thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid:  How to change to cell background color when a value is updated?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-How-to-change-to-cell-background-color-when-a-value-is-updated/</link><pubDate>Tue, 29 Dec 2009 12:02:59 GMT</pubDate><dc:creator>jcrendulic</dc:creator><description>&lt;p&gt;I was wondering how I would change the just the cell's background color and bold the value when value of that cell is updated?  I need to do this client side.  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>