title: Xceed datagrid column visibility binding
body: <p>I am trying to bind the visibility of columns in an Xceed datagrid to the IsChecked value of a checkbox.</p>
  
  <pre><code>&lt;xcdg:DataGridControl ReadOnly="{Binding ElementName=ShowReferenceColumn, Path=IsChecked}"&gt;
      &lt;xcdg:DataGridControl.Columns&gt;
          &lt;xcdg:Column FieldName="Reference" Visible="{Binding ElementName=ShowReferenceColumn, Path=IsChecked}" /&gt;
      &lt;/xcdg:DataGridControl.Columns&gt;
  &lt;/xcdg:DataGridControl&gt;
  </code></pre>
  
  <p>The ReadOnly property of the datagrid is getting updated by the chaning of the checkbox IsChecked value, but the visibility of the column is not changing. Am I missing something in the binding on the column?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>The ReadOnly property here is an example of a property where I was able to get the binding to work. In reality it is not going to be binding to the same checkbox as used for the column visibility.</p>