How to hide items of a combobox in WPF <p>Is there a way to hide items of a combobox in WPF? In my usercontrol there is a ListBox with checkbox-items bound to an ObservableCollection and a datagrid with a combobox.</p> <pre><code>&lt;ListBox x:Name="AvailableAttributes" Grid.Row="0" Grid.Column="2" SelectionMode="Single" &gt; &lt;ListBox.ItemContainerStyle&gt; &lt;Style TargetType="{x:Type ListBoxItem}"&gt; &lt;Setter Property="IsSelected" Value="{Binding IsSelected, Mode=OneWay}"/&gt; &lt;/Style&gt; &lt;/ListBox.ItemContainerStyle&gt; &lt;ListBox.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;CheckBox Content="{Binding Name}" IsChecked="{Binding IsSelected}"/&gt; &lt;/DataTemplate&gt; &lt;/ListBox.ItemTemplate&gt; &lt;/ListBox&gt; ... &lt;DataGrid Name="datagrid" AutoGenerateColumns="False" &gt; &lt;DataGrid.Columns&gt; &lt;DataGridTextColumn Binding="{Binding Name}" /&gt; &lt;DataGridComboBoxColumn SelectedValueBinding="{Binding CBID}" DisplayMemberPath="Name" SelectedValuePath="ID"&gt; &lt;DataGridComboBoxColumn.ElementStyle&gt; &lt;Style TargetType="{x:Type ComboBox}"&gt; &lt;Setter Property="ItemsSource" Value="{Binding Path=CBItems, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" /&gt; &lt;/Style&gt; &lt;/DataGridComboBoxColumn.ElementStyle&gt; &lt;DataGridComboBoxColumn.EditingElementStyle&gt; &lt;Style TargetType="{x:Type ComboBox}"&gt; &lt;Setter Property="ItemsSource" Value="{Binding Path=CBItems, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" /&gt; &lt;/Style&gt; &lt;/DataGridComboBoxColumn.EditingElementStyle&gt; &lt;/DataGridComboBoxColumn&gt; &lt;/DataGrid.Columns&gt; &lt;/DataGrid&gt; </code></pre> <p>I used <a href="http://stackoverflow.com/questions/5409259/binding-itemssource-of-a-comboboxcolumn-in-wpf-datagrid">this solution</a> to manage the combobox items and added the property 'IsSelected'</p> <pre><code>public class GridItem { public string Name { get; set; } public int CBID { get; set; } } public class CBItem { public int ID { get; set; } public string Name { get; set; } public bool IsSelected { get; set; } } </code></pre> <p>Now I want to use the 'IsSelected' property to hide/show the item in the combobox. Can someone tell me how can I achieve this?</p>