Is there a way to drag-drop rows within the spread for asp.net?

Posted by: joe0569 on 1 April 2019, 1:38 am EST

  • Posted 1 April 2019, 1:38 am EST

    I am looking for a way to re-order the rows within the spread control and then save the ordering to the database. I would like to use a drag-drop if possible, otherwise can you recommend another method?

    Worst case i can allow the user to modify a sequence number within a cell, but this is the least desirable option.

    Thanks,

    -joe m
  • Replied 1 April 2019, 10:26 pm EST

    Hello,

    You can allow the user to drag and drop rows by setting AllowRowMove property to true:
    https://help.grapecity.com/spread/SpreadNet12/ASP2/webframe.html#Allowing%20the%20User%20to%20Move%20Rows.html

    After completion of drag drop action you can simply set the save the Spread data with save xml option. Please note that moving rows is not allowed when the Spread is bound to a data source.

    Thanks,
    Deepak Sharma



Need extra support?

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

Learn More

Forum Channels