adding character ellipsis to DataGridCell and DataGrid headers?

Dec 22, 2009 at 2:20 AM

I'm trying to make the text in my datagrid cells to ellipsis'ize .

Is there anyway to do this with styles?

Dec 22, 2009 at 9:37 PM


    <Style TargetType="TextBlock">

      <Setter Property="TextWrapping" Value="NoWrap" />

      <Setter Property="TextTrimming" Value="WordEllipsis" />




This code would set the Style for the TextBlock within a DataGridCell for a TextColumn.

Dec 23, 2009 at 12:13 AM

Thank you, this works great.

How do I do add ellipsis  for the ColumnHeaders now?