Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Best way to set a strikethrough on individual cells of the WPF DataGrid?
  2. <DataGridTextColumn Binding="{Binding Name}">
  3.     <DataGridTextColumn.ElementStyle>
  4.         <Style TargetType="{x:Type TextBlock}">
  5.             <Setter Property="TextDecorations" Value="Strikethrough"/>
  6.         </Style>
  7.     </DataGridTextColumn.ElementStyle>
  8. </DataGridTextColumn>