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
200
Wrap text in the column
posted

Hi,

I have a grid. I want that whenver a user enters data in the cell of the column of the grid, the text wraps up if it exceeds the width of the column. Also multiline is set to true so that the user can enter multiple lines as well. This can be done for any cell of the particular column of the grid.

Is there any option where the text gets wrap up and the height of only that row increases accordingly? Please help me...

Thanks

Parents
No Data
Reply
  • 12773
    Verified Answer
    posted

    Hello,

    I think you can use the fallowing snipped in order to make your grid to wrap up the text in a column and allow the multiline:

        this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].CellAppearance.TextTrimming = TextTrimming.EllipsisWord;
        this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].CellMultiLine = DefaultableBoolean.True;
        this.ultraGrid1.DisplayLayout.Override.RowSizing = RowSizing.AutoFixed;

    If you wanted to resize each row any time its values were changed, as well as when first populated, you'd want to call " e.Row.PerformAutoSize();" in the InitializeRow event handler.

    I hope this helps.

    Sincerely,
    Dimi Gineva
    Developer Support Engineer
    Infragistics, Inc.

Children