How to Achieve ExcelLikeFillSelection in SfDataGrid

I want to achieve ExcelLikeFillSelection feature in SfDataGrid Control.
In other words, I want user to be able to start drag from one cell and drop a few cells after in vertically down direction and be able to copy cell values.
Please find attached Syncfusion Sample, it has desired behaviour I want, but it is designed for GridControl.

How do I achieve the same for SfDataGrid ? 


Thanking you,
Rahul Makwana

Attachment: Excel_Like_Fill_Selection_9b4204c3.7z

1 Reply

GT Gnanasownthari Thirugnanam Syncfusion Team November 29, 2017 12:14 PM UTC

Hi Rahul, 

We cannot provide direct support for ExcellLikeFillSelection feature like GridControl but you can achieve your requirement in SfDataGrid by customize the GridCellSelectionController class. In this sample we have get the first selected cell value and set the value to all dragged cells in ProcessPointerRelease method. 
 
We have prepared the sample based on your requirement, you can download it from below mentioned location. 
 
 
Regards, 
Gnanasownthari T. 
 


Loader.
Up arrow icon