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
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 GinevaDeveloper Support EngineerInfragistics, Inc.
When I try this, the row only resizes when you tab out of the cell, not whilst editing the cell. Is this what you would expect? This means that if I enter a carriage return, or my text wraps onto the second line, I can't see the rest of my text until I come out of the cell. :-(
Thanks for the post....was running into the related issue and the e.Row.PerformAutoSize(); seems to have fixed my issue.
Regards
Ankur
Thank u so much for the reply... It really works!!!