Cell does not refresh value on Paste

Hello, 

I am currently implementing a simple SfDataGrid in which I want to be able to copy/paste cells. 

In my View I have the following:

        <syncfusion:SfDataGrid x:Name="Sf_DataGrid" 
                               Grid.Column="2" Grid.Row="3"
                               Grid.ColumnSpan="8" Grid.RowSpan="6"
                               AllowFiltering="True"
                               AllowDeleting="True"
                               AllowEditing="True"
                               AddNewRowPosition="Bottom"
                               ShowRowHeader="True"
                               AllowDraggingRows="True"
                               AllowDrop="True"
                               GridValidationMode="InView"
                               AllowSorting="False"
                               AutoGenerateColumns="True"
                               AllowResizingColumns="True"
                               ColumnSizer="Star"
                               />

And in the code behind:

this.Sf_DataGrid.SelectionUnit = GridSelectionUnit.Cell;
this.Sf_DataGrid.GridCopyOption = GridCopyOption.CopyData | GridCopyOption.IncludeHeaders;
this.Sf_DataGrid.GridPasteOption = GridPasteOption.PasteData | GridPasteOption.ExcludeFirstLine;

When I select a cell and press Ctrl + C and paste to notepad I can see it works fine and I get the desired data.
When I select a cell and press Ctrl + V, nothing happens. I then double click the cell and the value refreshes to the pasted value.

I would want for the value to refresh upon paste just like in the downloaded samples. Can someone tell me what I am missing?

Thanks, 
Aurea

1 Reply

SJ Sathiyathanam Jeyakumar Syncfusion Team April 18, 2018 01:15 PM UTC

Hi Aurea, 
 
We are unable to reproduced the reported issue with the given code snippets from your end. If you used the column MappingName as Indexer properties, please enable the property UseBindingValue true. It will improve the performance when handle the Data Operations. 
If the issue is still persisting, could you please provide the sample to us based on your application, this will help us to analyze further and provide the better solution to you. 

Regards, 
Sathiyathanam 


Loader.
Up arrow icon