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
85
Infragistics web ultragrid cell wrap problem
posted

Hi,

I am using infragistics web ultrawebgrid of version 7.1  . I have binded a datasource to grid. All the columns

have string data. Now i want to wrap the cell data . When the data does not contain \r\n it should wrap. Even if

the data contains \r\n it is not wrapping.it always displays the data in single line.Please provide me the solution

as soon as possible

Parents
  • 45049
    Suggested Answer
    posted

    Replace "\r\n" in your strings with "<BR>".  A web browser doesn't know that "\r\n" represents a "carriage-return line-feed" in .NET, but it knows that "<BR>" is meant to be a line break.

    You may also need to set the grid's DisplayLayout.TableLayout to Auto, if it is currently set to Fixed.  This will allow rows and columns to auto-size to their contents.  Note that setting TableLayout to Auto also means that you need to turn off stationary margins and fixed headers, since these require TableLayout to be set to Fixed to work correctly.

Reply Children