I had a look at the sample code, I am doing something similar but I still see problems with my Rich text box.
I have pasted some sample code below
void GridPrepareViewStyle(object sender, GridPrepareViewStyleInfoEventArgs e)
{
try
{
if (e.RowIndex > 0 && e.ColIndex > 0)
{
int iCol = Convert.ToInt32(this.mainGrid.ColStyles[e.ColIndex].Tag);
if (this.displayData.Count < e.RowIndex) return;
GridData val = (GridData)this.displayData[e.RowIndex-1];
if(val!=null )
{
e.Style.TextColor = val.GetCellTextColorByIndex(iCol);
e.Style.BackColor = val.GetCellBackColorByIndex(e.RowIndex, iCol);
}
val = null;
}
}
catch (Exception er)
{
Console.WriteLine("GridPrepareViewStyle Error: " + er.Message);
}
}
This the string that has to be displayed
string sHighlightRTF = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\colortbl ;\red255\green0\blue0;}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\cf1\f0\fs20 !\cf0\par
}";
sample.zip