adding character ellipsis to DataGridCell and DataGrid headers?

Dec 22, 2009 at 1: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 8: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 22, 2009 at 11:13 PM

Thank you, this works great.

How do I do add ellipsis  for the ColumnHeaders now?