﻿<?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 - WebGridFormatCondition</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridFormatCondition/</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>WebGridFormatCondition</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridFormatCondition/</link><pubDate>Tue, 01 Mar 2011 03:12:35 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can use InitializeRow Server-side event in WebGrid. You put the validation over there and set the Font style like following:&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
   if (e.Row.Cells.GetNamedItem("Column1").Text.ToString() == e.Row.Cells.GetNamedItem("Column2").Text.ToString())
   {
      e.Row.Cells.GetNamedItem("Column1").Style.Font.Bold = true;
      e.Row.Cells.GetNamedItem("Column2").Style.Font.Bold = true;
   }
}&lt;/pre&gt;
&lt;p&gt;Attached is the sample file for your reference. Hope this helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>WebGridFormatCondition</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridFormatCondition/</link><pubDate>Mon, 28 Feb 2011 20:26:35 GMT</pubDate><dc:creator>bdenison</dc:creator><description>&lt;p&gt;I am trying to compare to cells in two column of a specific grid and change the format of the cells depending on the results. For instance.&lt;/p&gt;
&lt;p&gt;   &lt;/p&gt;
&lt;p&gt;Column 1     Column 2    &lt;/p&gt;
&lt;p&gt;160.00          168.00      Change Format to Bold&lt;/p&gt;
&lt;p&gt;168.00          168.00      No Change&lt;/p&gt;
&lt;p&gt;160.00          159.00      Change Format to Bold&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I was thinkgin of using the WebGridFormatCondition, but all the examples only contain a comparison to a value, not another cell in the same row.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>