Hi there,
On resize the column in Muti-line cell of the ultrawingrid it does not word wrap i.e. it breaks/split the word in two consecutive lines .Even though I set the: RowSizing property to UltraWinGrid.RowSizing.AutoFreeand set the Column.CellMultiLine = DefaultableBoolean.True
and I am setting these properties in the AfterColPosChanged event as I can not use the AfterRowLayoutItemResized event in my project settings.How can I acheive the word wrap feature. Please help.
Thanks.
I am not sure if you want to enforce the multi line property when the cell space is not enough.
Try to put the RowSizing property to autofixed
Control Settings --> Override --> RowSizing.
Maybe this helps.
Well, if there is no WordWrap property on the column, then my guess is that this is not supported by the grid. You might want to check with developer support and see if they know a way:
Submit an incident to Infragistics Developer Support
Thanks for replying . I was trying to do it in AfterColPosChanged because I can’t set the property of the column to wordwrap, because there is no such property for the column. I want that it should wrap the text by word when the grid come for the first time( I think for this I can use InitializeLayout) and when user resize the columns also.
I'm not sure why you would set these properties in AfterColPosChanged. This event is only going to fire AFTER something has happened to change the column width or position, and it will fire every time such a change happens. So that doesn't really make sense. You only need to set this property on the column once. So I would set it in InitializeLayout.
MultiLine means that the cell will honor return characters in the text. It does not automatically wrap. Is there a WordWrap property on the column?