Disable separator selection in data bound combo box in WPF
I have a Combo Box that is databound. In this list, I need a separator. Since this is databound, I do something very similar to this post . My database returns the list, includes a '-' to mark where the separator needs to go, and the datatrigger makes this a separator. <ComboBox Name="cbAction" Grid.Column="1" Grid.Row="0" Margin="5,2,5,2" DisplayMemberPath="Description" SelectedValuePath="Code" SelectionChanged="cbAction_SelectionChanged"> <ComboBox.ItemContainerStyle> <Style TargetType="{x:Type ComboBoxItem}" BasedOn="{StaticResource {x:Type ComboBoxItem}}"> <Style.Triggers> <DataTrigger