Insert row and copy formatting down

Posted by: dean.kinnear on 3 January 2023, 10:09 am EST

    • Post Options:
    • Link

    Posted 3 January 2023, 10:09 am EST

    Is there a way to insert rows and copy the formatting with it as Excel does?

  • Posted 3 January 2023, 10:37 am EST

    Nevermind, I got it working with addRows and copyTo.

    Thanks anyway!

  • Posted 4 January 2023, 1:08 am EST

    Hi Dean,

    We are happy that your issue has been resolved. You could monitor the RowChanged Event and then copy the formatting of the previous rows to match the Excel’s behavior. In the arguments of the RowChanged Event, you can check for the propertyName “addRows” and the rowIndex of the newly added row(s).

    RowChanged Event: https://www.grapecity.com/spreadjs/api/classes/GC.Spread.Sheets.Events#rowchanged

    Regards,

    Ankit

Need extra support?

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

Learn More

Forum Channels