代码如下,设置完IsEnabled="false"属性后,双击这个单元格能看到Checkbox框,如何将Checkbox框彻底隐藏掉,或者如何关掉这一列的双击事件也可以?
十分感谢!
<c1ex:CheckBoxColumn Header="{x:Static resabelResources.Select}" Width="40" HeaderHorizontalAlignment="Center" HorizontalAlignment="Center" HeaderTextWrapping="true" AllowMerging="True" Visible="False" AllowSorting="False" Background="Silver">
<c1ex:CheckBoxColumn.CellTemplate>
<DataTemplate>
<CheckBox HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="False" IsChecked="{Binding SelectCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Visibility="Hidden" />
</DataTemplate>
</c1ex:CheckBoxColumn.CellTemplate>
</c1ex:CheckBoxColumn> |
|