Question: I have the following datatrigger attached to a combobox:

```
        <TextBlock Grid.Row="1" Grid.Column="0" Text="Vendor:" VerticalAlignment="Center" Margin="3,3,0,3"/>
        <dxe:ComboBoxEdit Grid.Row="1" Grid.Column="1" Margin="3" ItemsSource="{Binding VendorList.Result}" 
                          DisplayMember="VendorName" ValueMember="VendorId" IsEnabled="False">                    
            <DataTrigger Binding="{Binding ElementName=cmbPogSetTypeList,
                         Path=EditValue}" 
                         Value="{x:Static data:PogStoreData+POGResetType.Vendor}">
                <Setter Property="FrameworkElement.IsEnabled" Value="True"/>
            </DataTrigger>
        </dxe:ComboBoxEdit>

```

In this trigger what I am trying to do is if "Vendor" is selected in the first combobox then the next combobox will become enabled. The first combobox is populated using an enum:

```
public enum POGResetType
        {
            Meijer=1,
            Vendor=2,
            Homestore=3
        }

```

But the second combobox is not getting enabled. Please help.

Answer: 
Try referencing the enum value rather than the integer value.

```
<DataTrigger Binding="{Binding ElementName=cmbPogSetTypeList, Path=SelectedItem}"
Value="{x:Static mynamespace:POGResetType.Vendor}"/>

```
I think you can use a IValueConverter

```
<StackPanel>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="Planogram Set Type:" VerticalAlignment="Center" Margin="3,3,0,3" />
            <ComboBox Grid.Row="0" Grid.Column="1" Margin="3" ItemsSource="{Binding PogSetTypeList}" Name="cmbPogSetTypeList"/>

            <TextBlock Grid.Row="1" Grid.Column="0" Text="Vendor:" VerticalAlignment="Center" Margin="3,3,0,3"/>
            <ComboBox Grid.Row="1" IsEnabled="{Binding ElementName=cmbPogSetTypeList,Path=SelectedItem,Converter={StaticResource Conv}}" Grid.Column="1" Margin="3"                                    >

            </ComboBox>
        </StackPanel>

```

IvalueConverter

```
internal class ResetTypeConverter : IValueConverter
    {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value != null)
            {
                var revalue = (int)(POGResetType)value;
                if (revalue == 2)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

            return false;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
    }

```