Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
279
How to wrap text in columns
posted

Hi, I'm trying to display a fixed grid meaning I have fixed columns size in a UltraWebGrid, the problem is that some fields doesn't display the whole text, I notice a property that says "wrap" but I set it true and I still get the same result:

How can I approach this??? can anybody help me whit this?

 

Thanks

Parents
  • 325
    Verified Answer
    posted

    Fixed grids can't wrap their text by 'characters' only by word.  There is another post about this somewhere that I ran into yesterday.

    I am working on exactly the same issue as you - but I am performing ALL of the rendering as I am not using a conventional data structure to create my grid, as it's a proprietry data structure that the Grid would never understand.

    The only way to get round this, is to modify your text and insert a white-space (I used a simple space character) at the point you need to the grid to wrap, and you may also need to modify the height of each row appropriately.  You may also need to use both the Column.Wrap and Row.Wrap properties to deal with this more effectively for you.

    The only problem I have run into so far, is knowing what font has been applied so I can set the whitespace point in the right place, as I can't seem to query this from anywhere on the grid (DisplayLayout, Column etc all have the Font set to nothing).

Reply Children
No Data