Superscript in a cell content

hi,

I am using syncfusion 4.2.0.37 . In my data grid i have a column, the cell content of which may contain a superscript. for example a cell text may contain "Gaurav 2" where 2 should be superscript.

How can i achieve this in a data grid?

Thanks in advance.

1 Reply

AD Administrator Syncfusion Team October 26, 2006 10:06 AM UTC

Hi Gaurav,

There is no default property setting to paste a image in a cell. You need to set the CellType to InPlaceRichText and sets cellvalue to RTF text Or the SelectionCharOffset property of the RichTextBox to change the control appears on the baseline, as a superscript, or as a subscript below the baseline. Please refer the attached sample for more details and let me know if you looking something different.

this.gridControl1.TableStyle.CellValue = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} \viewkind4\uc1\pard\f0\fs17 Syncfusion\up15 2\up0\par}";

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/PasteinRichTextInPlaceCellContol_d0d75dfc.zip

Best Regards,
Haneef

Loader.
Up arrow icon