Hi,
To get access to the underlying richtext control in a cell you need to cast the clicked cell renderer as GridRichTextBoxCellRenderer and iterate through the Controls collection of the GridRichTextEntryPanel as in the below code.
GridCellRendererBase renderer = this.gridControl1.GetCellRenderer(row, col);
if (renderer is GridRichTextBoxCellRenderer)
{
GridRichTextBoxCellRenderer rtr = renderer as GridRichTextBoxCellRenderer;
foreach (Control c in rtr.DropDownContainer.Controls)
{
foreach (Control ct in (c as GridRichTextEntryPanel).Controls)
{
if (ct is RichTextBox)
{
RichTextBox rt = ct as RichTextBox;
}
}
}
}
You can get the string that is clicked on using the GetCharFromPosition() method of the RichTextBox. Please refer the below sample for more details on this.
Here is a sample
http://websamples.syncfusion.com/samples/Grid.Windows/F69160/main.htmLet me know if you have any questions.
Thanks for using Syncfusion Products.
Regards,
Rajagopal