Autoresize RowHeight on EditChange

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

  • Posted 8 September 2017, 1:45 pm EST

    <DIV class=Section1>

    <FONT face=Arial size=2><SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;">Hi!.<o:p></o:p></SPAN></FONT>

    <FONT face=Arial size=2><SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;">I'm trying to create a cell that increase his height autommatically when I'm writting something. </SPAN></FONT><FONT face=Arial size=2><SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;">I've tried to use the method GetPreferredHeight in the EditChange event, but it doesn't work until the EdirModeOff event has been thrown.</SPAN></FONT><FONT face=Arial size=2><SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"><o:p> </o:p></SPAN></FONT>

    <FONT face=Arial size=2><SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;">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.<o:p></o:p></SPAN></FONT>

    <FONT face=Arial size=2><SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;">Has the spread any method or way that allows me to create this celltype?</SPAN></FONT>

  • Replied 8 September 2017, 1:45 pm EST


    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