We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Superscript in a cell content

Thread ID:





51008 Oct 26,2006 06:49 AM UTC Oct 26,2006 10:06 AM UTC WinForms 1
Tags: GridControl
Asked On October 26, 2006 06:49 AM UTC


I am using syncfusion . 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.

Administrator [Syncfusion]
Replied On 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.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon