title: WPF DataGridColumn conditional control
body: <p>I am currently displaying a hyperlink in my data grid with the following DataGridHyperLinkColumn definition:</p>
  
  <pre><code>  &lt;DataGridHyperlinkColumn Header="Item" Binding="{Binding Item, Mode=OneWay}"&gt;
      &lt;DataGridHyperlinkColumn.ElementStyle&gt;
        &lt;Style&gt;
          &lt;EventSetter Event="Hyperlink.Click" Handler="ButtonItemInfo_OnClick"/&gt;
        &lt;/Style&gt;
      &lt;/DataGridHyperlinkColumn.ElementStyle&gt;
    &lt;/DataGridHyperlinkColumn&gt;
  </code></pre>
  
  <p>I want to change this to conditionally display a hyperlink or a label (or textblock). So if the bound value is "SH", I want to display the label. Otherwise I want the hyperlink.</p>
  
  <p>How can I accomplish this?</p>