Autoresize RowHeight on EditChange

Posted by: ikrush on 8 September 2017, 1:45 pm EST

  • Posted 8 September 2017, 1:45 pm EST


    Hi!.


    I'm trying to create a cell that increase his height autommatically when I'm writting something. I've tried to use the method GetPreferredHeight in the EditChange event, but it doesn't work until the EdirModeOff event has been thrown. 


    I'd put the event in the change event and it works, but I need the cell increase his height at the ame time that I write somenthing.


    Has the spread any method or way that allows me to create this celltype?

  • Replied 8 September 2017, 1:45 pm EST

    Hello,


    There is not a way to do this in the Spread for Windows Forms product. As you have found out, the cell has to be out of editmode in order to measure the preferred rowheight. If you measured the string yourself and set the rowheight accordingly, this would automatically take the cell out of editmode.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels