代码如下,flexgrid的第一列内部有个checkbox, 需要根据条件,有的行显示,有的行隐藏,请问如何做到?
Visibility="Hidden" 这个属性如何动态地设置呢?
<c1ex:CheckBoxColumn Header="{x:Static resabelResources.Select}" Width="40" Visible="False" HeaderHorizontalAlignment="Center" HorizontalAlignment="Center" HeaderTextWrapping="true" IsReadOnly="false" AllowMerging="True" AllowSorting="False" Binding="{Binding Select}" Background="Silver">
<c1ex:CheckBoxColumn.CellTemplate>
<DataTemplate>
<CheckBox HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding Select,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" Visibility="Hidden"/>
</DataTemplate>
</c1ex:CheckBoxColumn.CellTemplate>
</c1ex:CheckBoxColumn> |
|