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
1640
multiline cell becomes singleline when clicked
posted

I have a multiline column with multiline texts in it, but when I click the cell(CellClickAction is Edit), the text in the cell become singleline.

how do I keep the texts in multiline even the cells are in Edit mode? Is there anything with celldisplaystyle and style property of the column I can treat with to do so?

Parents
  • 2197
    Suggested Answer
    posted

    Hello.

    If I am reading this correctly, the grid renders the cell with text that is wrapped and the row grows a little taller to accomodate the text. When you click the cell to go into edit mode, it reverts back to single line editing. Is this correct?

    In order to have the grid show wrapped text in the cells, you have to allow it to re-size the rows. You do that by setting the RowSizing property on DisplayLayout.Override:

    ultraGrid1.DisplayLayout.Override.RowSizing = RowSizing.AutoFree;

    As long as it is not RowSizing.Fixed, then the grid will be able to expand the height of the row to make it wrap the text. Once this happens, if you set Coumn.CellMultiLine to true, then putting the cell into edit mode will allow you to enter text in a multi-line format.

    What are the exact properties that you have set?

Reply Children