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

How to see if a text is wrapped?

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

1 Reply

AD Administrator Syncfusion Team December 5, 2005 12:38 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon