title: LightSwitch - Conditional formatting of data in a row / cell
body: <p>I have a list and details screen whereby I want to show certain rows in italics in the list if they pass a certain condition. Ie: priority &lt; 10 from a field on the datasource that is not displayed on the screen.</p>
  
  <p>This does not seem possible through the out of the box controls; would I have to create my own custom silverlight gridview control to accomplish this? If so, any tips on the simplest way??</p>
  
  <p>Currently the formatting is hard coded as bold for all rows using a constantexpression as shown below.</p>
  
  <pre><code>&lt;ControlPropertySource Property="Microsoft.LightSwitch:RootControl/Properties[FontStyle]"&gt;
   &lt;ScreenExpressionTree&gt;
    &lt;ChainExpression&gt;                                                
     &lt;ConstantExpression ResultType=":String"
                         Value="Strong" /&gt;
    &lt;/ChainExpression&gt;
   &lt;/ScreenExpressionTree&gt;
  &lt;/ControlPropertySource&gt;
  </code></pre>