Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Excel to Datagridview copy issue

$
0
0

Hi,

 

I am using datagridview C#, .net2.0 with copy/paste through _keydown event.Paste uses

Clipboard.GetText(TextDataFormat.UnicodeText);

 

But we have an issue of when we try to paste data from excel to grid in following fashion, we are not able to paste exact selected cells:

 

1. Type following in different rows and same columns : 1,2,3,4,5,6,7 

2. Select rows cells by cntrl with data 1,3 and 7 and copy by cntrl-c

3. Go to grid and paste by cntrl-v entire collection of data that is 1,2,3,4,5,6 and 7 is copied to clipboard and pasted to grid.

 

This not the expected behaviour.

Your help will be greatly appreciated.

 

Thanks,

Pnv


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>