We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to obtain old and new value of the cells while performing drag fill operation in Spreadsheet?

Platform: WPF |
Control: SfSpreadsheet |
Published Date: February 28, 2017 |
Last Revised Date: February 28, 2017

You have to create a new class which is derived from FillSeriesController and override the FillSeries & CopyCells methods to get the old and new value of the cells while performing drag and fill operation.

FillSeries method is invoked when the cell values are filled in a series after dragging and CopyCells method is invoked when the cell values are copied after dragging. On both methods, you can get the filled range from the argument “newRange”. Get the old value of the cells before calling the base method and get the new value of the cells after calling the base method like below code example.

 

 

Then assign the instance of that custom FillSeriesController to the FillSeriesController property of each SpreadsheetGrid in the WorkbookLoaded and WorksheetAdded event of Spreadsheet.

 

C#

 

Sample Link:

WPF

UWP

 

 

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon