How do I set the TextWrapping of every cell in a WPF DataGrid to "NoWrap"? I understand the Cell itself does not have a "TextWrapping" property, but I'd like to set the property on the control within the cell.
The DataGrid I am working with does not have columns defined explicitly, the result set it is displaying is dynamic.
I am looking for a solution similar to the answers provided in the links below. However I do not want to explicitly override the cell style/template and define the control to be used. Instead I would like to say, IF a TextBlock is being used, set its TextWrapping property to NoWrap.
WPF toolkit datagrid cell text wrapping
How do I enable text wrapping on all column headers?