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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Superscript in a cell content

Thread ID:

Created:

Updated:

Platform:

Replies:

51008 Oct 26,2006 06:49 AM UTC Oct 26,2006 10:06 AM UTC Windows Forms 1
loading
Tags: GridControl
Gaurav
Asked On October 26, 2006 06:49 AM UTC

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.

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.
http://www.syncfusion.com/Support/user/uploads/PasteinRichTextInPlaceCellContol_d0d75dfc.zip

Best Regards,
Haneef

CONFIRMATION

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.

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

;