wpf devexpress gridcontrol with radiobutton, pass IsEnabled binding to celltemplate

110 Views Asked by At

I have a Gridcolumn like this:

<dxg:GridColumn Binding="{Binding OrderTyp, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                                Header="Order" 
                                Visible="{Binding IsOrderToMe}"
                                Width="60"
                                IsEnabled="{Binding StatusHandled, Converter={StaticResource InvertedBooleanConverter}}"
                                CellTemplate="{StaticResource IsOrderTyp}"/> 

My celltemplate looks like this:

 <DataTemplate x:Key="IsOrderTyp">
    <RadioButton IsChecked="{styles:GridCellValueBinding 
                            Converter={StaticResource ECompare}, 
                            ConverterParameter={x:Static enums:OrderTypIdEnum.ORDER}, Mode=TwoWay}"
                 IsEnabled="{Binding ????????????}"
                 Style="{StaticResource GridRadioButtonStyle}"/>
  </DataTemplate>

how do I get the binding for IsEnabled from the gridcolumn in my celltemplate?

0

There are 0 best solutions below