title: Silverlight DataGridTextColumn Binding Visibility
body: <p>Following my <a href="https://stackoverflow.com/questions/980560/silverlight-datagrid-adding-columns-at-runtime">earlier post</a> I am now trying now to bind the visibility of DataGridColumns to a VM notification property. <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.datagridcolumn.visibility(VS.95).aspx" rel="nofollow noreferrer">MSDN</a> suggests I should be able to do this with ease.</p>
  
  <p>I already have a value convertor and VM notification property that I <strong>know</strong> works (I have tested these on another element on my page:</p>
  
  <pre><code>&lt;CheckBox x:Name="chkAllTeams" Visibility="{Binding Converter={StaticResource BoolToVisibilityConverter}, Path=AllTeams}"/&gt;
  </code></pre>
  
  <p>This checkbox control visibility reacts as I would expect. When I set the same binding on the DataTextColumn I get an AG_E_BAD_PARSER error on the <em>Visibility=</em> line of XAML:</p>
  
  <pre><code>&lt;data:DataGridTextColumn 
  Visibility="{Binding Converter={StaticResource BoolToVisibilityConverter}, Path=AllTeams}"
  /&gt;
  </code></pre>
  
  <p>Any ideas anyone?
  Thanks,
  Mark</p>