﻿<?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 - FormatCondtions</title><link>http://www.intersoftsolutions.com/Community/WebGrid/FormatCondtions/</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>FormatCondtions</title><link>http://www.intersoftsolutions.com/Community/WebGrid/FormatCondtions/</link><pubDate>Mon, 01 Feb 2010 08:48:57 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Thanks worked perfectly...&lt;/p&gt;</description></item><item><title>FormatCondtions</title><link>http://www.intersoftsolutions.com/Community/WebGrid/FormatCondtions/</link><pubDate>Sun, 31 Jan 2010 23:01:45 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;For such scenario you will have to use CustomConditionText property. Please use&lt;/p&gt;&lt;pre&gt;a.CustomConditionText = "EXEMPTION_FLAG = 'y'";&lt;/pre&gt;&lt;p&gt;Instead of&lt;/p&gt;&lt;pre&gt;a.ColumnMember = "EXEMPTION_FLAG";&lt;br /&gt;a.ConditionText = "y";&lt;/pre&gt;
&lt;p&gt;If you have null value cell in the datasource.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>FormatCondtions</title><link>http://www.intersoftsolutions.com/Community/WebGrid/FormatCondtions/</link><pubDate>Fri, 29 Jan 2010 13:20:59 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;I'm trying to set a FomatConditon based upon a value in the grid.  I've used both the designer and code and think I have come up with a bug.  If the Column that you are testing is NULL, then the Grid fails with an Object Refreence Not Set, but in my case it fails within my Master Page.  If I change the column I am looking at to one that doens't contain any NULL values then the format condition displays properly.&lt;/p&gt;
&lt;p&gt;Heres the code&lt;/p&gt;&lt;pre&gt;Protected Sub WebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.LayoutEventArgs) Handles WebGrid1.InitializeLayout
        ' specific row     
        Dim a As WebGridFormatCondition = New WebGridFormatCondition()
        a.ColumnMember = "EXEMPTION_FLAG"
        a.ConditionText = "y"
        a.Name = "Format1"
        a.FormatStyle.CssClass = "flag"
        'a.FormatStyle.ForeColor = System.Drawing.Color.Red
        a.TargetObject = ISNet.WebUI.WebGrid.TargetObjectType.Row
        WebGrid1.RootTable.FormatConditions.Add(a)
    End Sub&lt;/pre&gt;
&lt;p&gt;The field EXEMPTION_FLAG maybe "y' but in most cases is NULL.  &lt;/p&gt;
&lt;p&gt;Like I said if I change EXEMPTION_FLAG to another field that doesn't have any NULL's then it works.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Is this a bug or did I miss something?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am using an ISDataSource looking at a DataSet for the data source of the grid.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;</description></item></channel></rss>