Hello,
what is the difference, both works: DataGridTemplateColumn versus DataGridTextColumn
both works means I can edit+display rich text in the cell.
<DataGridTemplateColumn Header="Homework">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<RichTextBox >
<FlowDocument>
<Paragraph>
<Run Text="{Binding Homework}"/>
</Paragraph>
</FlowDocument>
</RichTextBox>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="Homework">
<DataGridTextColumn.CellTemplate>
<DataTemplate>
<RichTextBox >
<FlowDocument>
<Paragraph>
<Run Text="{Binding Homework}"/>
</Paragraph>
</FlowDocument>
</RichTextBox>
</DataTemplate>
</DataGridTextColumn.CellTemplate>
</DataGridTextColumn >