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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

info from a richtext cell

Thread ID:





8659 Nov 14,2003 05:40 PM UTC Nov 15,2003 07:02 AM UTC WinForms 1
Tags: GridControl
Asked On November 14, 2003 05:40 PM UTC

I see from other posts that it is not possible ResizeToFit a RichText cell (yet). Is it possible to extract the number of rows of text the cell contains? Thank you.

Administrator [Syncfusion]
Replied On November 15, 2003 07:02 AM UTC

I don't really have a good suggestion for this. You could do something crude like count \par's in the string, but this would just give you the hard breaks. To actually get the true count I think you would have to use interop with the win32 control. (If you own our source code, you can look at RichTextPaint.cs in Shared to see how the grid uses interop to paint the richtext.)


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

Live Chat Icon For mobile
Live Chat Icon