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. Image for the cookie policy date

Paste is an error.


I am currently developing a excel in data paste to SfDataGrid.

but there are many bug.

first. I can't catch Ctrl + V, Delete key  in SfDataGrid's PreviewKeyDown or KeyDown Event Handler.
(I think  built in SfDataGrid method for Copy & Paste is hooking my event handler)

and i bound DataTable to SfDataGrid.
When DataTable's cell type is string and cell has initial value(DBNull.Value), Does not work paste. 
when DataTable's cell type is double and cell has initial value(DBNull.Value),Does not work paste.

always paste is start first column

please help me

Attachment: SFDataGridTest_a9c40b52.zip

6 Replies

SM Saravanan M Syncfusion Team January 19, 2015 02:25 PM UTC

Hi Kim,

Thanks for contacting Syncfusion support,

Regarding Query1:

We are unable to reproduce the reported issue in our latest version. We are able to catch the PreviewKeyDown and KeyDown event while pressing the Delete and Ctrl+V keys in SfDataGrid. Could you please share your Essential Studio version and exact replication procedure to us?

Regarding Query2:

The reported issue has been already fixed in our latest version . Could you please upgrade to our latest version to get resolution for reported issue.



KD Kim Dukho January 20, 2015 12:46 AM UTC

Regarding Query1:

I was downloaded yesterday, so I think i used latest version. but i was confront problem like query2.

so I was development my self . 

When I pressed Ctrl, I can catch event. but Ctrl+V is I can't.

using 'if '  and  e.key  if pressed button is V then I checked modifier Ctrl's pressed state.  and e.handle = true;

however, my code is not fire. and sfDataGrid's paste is fire.....

Incidentally, sfDagaGrid's cell selection for edit  in my attachment project .

very strange. i can't see caret. and input state. 


And,  I make List<Custom>  in viewmodel.

and binding sfDataPager,source. 




<sf:DataGrid ItemsSource="{Binding ElementName=Pager, Path=PagedSource}"/>

<sf:sfDataPager x:Name="Pager" Source="{Binding List}"/>

But, when the notifypropertychanged event fired from list created  that new exception( binding is null)


I used this license in my company.

Can i use at my home?

thank you 

KD Kim Dukho January 20, 2015 12:51 AM UTC

VisualStudio version  - Premium 2013 12.0.31101.00 Update 4

Syncfusion version -

KD Kim Dukho January 20, 2015 01:36 AM UTC

Copy from Excel( 2Columns, 9 Rows) 
DataGrid's first column is readyonly.
During Movie Recording we pressed continue Ctrl+V 
First. Empty sfDataGrid bound DataTable.  Paste is not fired

Second, Input value at some of the cells only.  Just paste working  at the some cells.

Finally, Select where I was, Paste is working from First Cell(first cell is ready only. so not changed)

KD Kim Dukho January 20, 2015 01:41 AM UTC

i want.. edit my thread....

where is the edit button?

ready only -> Read only.

SM Saravanan M Syncfusion Team January 21, 2015 05:56 AM UTC

Hi Kim,

We have created incident for your queries. Please follow the incident 134279 for further updates. Please log on to our support website to check further updates


Please let me know if you have any queries,



Live Chat Icon For mobile
Up arrow icon