title: C#/WPF: Make a GridViewColumn Visible=false?
body: <p>Does anyone know if there is an option to hide a GridViewColumn somehow like this:</p>
  
  <pre><code>&lt;ListView.View&gt;
      &lt;GridView&gt;
          &lt;GridViewColumn Header="Test" IsVisible="{Binding Path=ColumnIsVisible}" /&gt;
      &lt;/GridView&gt;
  &lt;ListView.View&gt;
  </code></pre>
  
  <p>Thanks a lot!</p>
  
  <p>Edit: For clarity</p>
  
  <p>Unfortunately, there is no "IsVisible" Property. I'm looking for a way to create that.</p>
  
  <p>Edit: The solution based on the feedback looks like:  </p>
  
  <pre><code>&lt;GridViewColumn DisplayMemberBinding="{Binding Path=OptionColumn1Text}" 
                  Width="{Binding Path=SelectedEntitiy.OptionColumn1Width}"&gt;
      &lt;GridViewColumnHeader Content="{Binding Path=SelectedEntitiy.OptionColumn1Header}" IsEnabled="{Binding Path=SelectedEntitiy.OptionColumn1Width, Converter={StaticResource widthToBool}}" /&gt;
  &lt;/GridViewColumn&gt;
  
  public class WidthToBooleanConverter : IValueConverter
  {
      public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
      {
          return (int)value &gt; 0;
      }
  
      public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
      {
          throw new NotImplementedException();
      }
  }
  </code></pre>
  
  <p>Thanks to all!<br>
  Cheers</p>