C # is used
Scenario.
Data from the database fall into the "dataGridView" .
It is assumed that when you move the cursor over the entries in the "dataGridView" , the value of the cell from the row where the cursor is located and a specific column fall into the "RichTextBox" .
There, the user, if necessary, will format a piece of text and go to the next line.
Upon subsequent connections to the database and hitting the cursor on a previously formatted entry, the previously changed format is again displayed in the "RichTextBox"
An example of formatting in the screenshot.
Question.
How to make the user can format a piece of text?
