DataGridCell의 내용을 변경하고 싶습니다.datagrigger의 DataGridcell에서 내용을 변경하십시오.
<Style TargetType="DataGridCell" x:Key="ChangeContentOfCellSstyle">
<Style.Triggers>
<DataTrigger Binding="{Binding IsWashed}" Value="True">
<Setter Property="Content" Value="The new value for the cell."/>
<Setter Property="Background" Value="Red"/> //sets the background of the cell to red just to show the trigger is working
</DataTrigger>
</Style.Triggers>
</Style>
그러나 셀의 내용이 변경되지 않은 : 나는 그런 내가 DataTrigger과 같이이 너무
<DataGridCheckBoxColumn CellStyle="ChangeContentOfCellSstyle"...
처럼 DataGridView에있는 열을 가지고있다. 심지어 셀이 빨간색으로 바뀌어도 DataGridTextColumn을 사용하여 동일한 작업을 시도해 볼 필요가 없습니다.
감사합니다. Andy, 멋지 네요. 나는 지금 그것을 들여다 볼 것이다. –