Hi guys,
I need to make the certain column in the grid to be rich text formatted column. It means that I have table with text field. Values of the field is RTF text. So I want to get the text formatted in the grid.
The only way to do that as I have understood is to set to CellContentTemplate column property template with RichTextBox:
DataTemplate template = new DataTemplate( typeof( RichTextBox ) );
template.VisualTree = control;
_grid.Columns[ 0 ].CellContentTemplate = template;
But I have 2 problems here:
1. How can I customize the RichTextBox properties before I give it to CellContetTemplate? (for ex. make its border style none)
2. How can make the RichTextBox in the grid cell to show cell text? As I understand I should bind the Content of RichTextBox to cell text...
Would anybody provide me a code sample how to do it?
Thanks a lot