My WPF datagrid\'s columns are fixed width, which means long text in the rows are cut off. How can I have the text wrap?
If your DataGridTextColumn is being created in the code behind you can set the style and setters this way:
_dataGridTextColumn.MaxWidth = 550;
_dataGridTextColumn.ElementStyle = new System.Windows.Style(typeof(TextBlock));
_dataGridTextColumn.ElementStyle.Setters.Add(new Setter(TextBlock.TextWrappingProperty, TextWrapping.Wrap));
This will cause the text inside the _dataGridTextColumn to wrap as it would inside a TextBlock.