or
private
void
HightlightText(
string
textToHighlight)
{
DocumentTextSearch search =
new
DocumentTextSearch(
this
.radRichTextBox1.Document);
foreach
(var textRange
in
search.FindAll(textToHighlight))
{
this
.radRichTextBox1.Document.Selection.AddSelectionStart(textRange.StartPosition);
this
.radRichTextBox1.Document.Selection.AddSelectionEnd(textRange.EndPosition);
this
.radRichTextBox1.ChangeTextHighlightColor(Color.Red);
}
}
Private
Sub gvMessages_CellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles gvMessages.CellFormatting
For Each row In Me.gvMessages.Rows
If row.Cells("Type").Value = "S" Then
row.Cells("Element").CellElement.BackColor = Color.Aqua
Else
End If
Next
But it did not work. Could you please give me a hint or a link for a solution.
Thnak you very much
Roberto