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.

How to see if a text is wrapped?

Thread ID:

Created:

Updated:

Platform:

Replies:

38010 Dec 4,2005 04:18 PM Dec 4,2005 07:38 PM Windows Forms 1
loading
Tags: GridControl
Rene Balvert
Asked On December 4, 2005 04:18 PM

Is there is possibility in the unbound grid to see if cell/row contains wrapped text? What is the way to resize the rows at runtime (from code)? Tx, Rene

Administrator [Syncfusion]
Replied On December 4, 2005 07:38 PM

There is no property to check if a cell has wrapped text. You would have to use Graphics.MeasureString and compare the width to the column width to decide if the text needed to be wrapped. The autosize, you can use these methods. grid.Model.ColWidths.ResizeToFit grid.Model.RowHeights.ResizeToFit

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.

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.

;