Change CSS class based on bound value?
<p>I have an item template in a grid view:</p>

<pre><code> &lt;asp:TemplateField HeaderText="Name" SortExpression="GroupDescription"&gt;
                &lt;ItemTemplate&gt;
                    &lt;asp:Label ID="lblName" CssClass="edit" runat="server" Text='&lt;%# Bind("GroupDescription") %&gt;'&gt;&lt;/asp:Label&gt;
                     &lt;asp:HiddenField ID="lblHidden" EnableViewState="false" runat="server" /&gt;
                &lt;/ItemTemplate&gt;

            &lt;/asp:TemplateField&gt;
</code></pre>

<p>The CssClass is 'edit'. If the GroupDescription is default then there should be no css class. Is there some way to do this?</p>

<p>Thanks</p>
