WPF DataGridTextColumn multi-line input

Viewed 17687

I am using the WPF DataGrid control in .NET 4 that have a DataGridTextColumn.

I want to be able to enter multi-line text. The line breaks are formatted correctly when I bind data to the column, but I've found no way of creating the line breaks when editing the text.

<DataGrid ItemsSource="{Binding MyMessages}">
   <DataGrid.Columns>
      <DataGridTextColumn Header="Message" Binding="{Binding Path=Message}"  Width="Auto"/>
   <DataGrid.Columns>
</DataGrid>

Any suggestions?

2 Answers
Related