Yes, you can do it through data triggers.
Example:
- You create a custom DataGridCell style called MyCellStyle.
- Whenever the property MyProperty contained in the specific model representing the row is set to True the ForeGround text will be set to Transparent.
- All you need to do is utilize this on any DataGridCell that you wish to exhibit the desired behavior.
The sample:
<Style x:Key="MyCellStyle" TargetType="{x:Type DataGridCell}">
<Style.Triggers>
<!-- Hide text if MyProperty is "True" -->
<DataTrigger Binding="{Binding Path=MyProperty, Mode=OneWay}" Value="True">
<Setter Property="Foreground" Value="Transparent" />
</DataTrigger>
</Style.Triggers>
</Style>
There are of course other options for hiding the text. I would strongly recommend not manipulating the model itself. Affect the content visibility instead since that is the desired behavior.