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