This is a migrated thread and some comments may be shown as answers.

[Solved] Paste from Excel issue with blank cells

2 Answers 149 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 17 Oct 2011, 02:21 AM
I have a radGridView that is used to paste excel data (which can contain blank values in certain fields).

What I am experiencing is that these Blank values are being ignored and the remaining cells on the line to shift left to replace the empty cell.

For example the data in Excel...

Col 1 Col 2      Col3
130        65          Tree 321
213                      Tree 923
293        93          Tree 320

Would paste into the GridView as...

Col 1      Col 2      Col 3
130        65          Tree 321
213        Tree 923
293        93          Tree 320

Any ideas on why, as well as what I need to do for this to paste in to the proper locations?

2 Answers, 1 is accepted

Sort by
0
Matthew
Top achievements
Rank 1
answered on 17 Oct 2011, 04:12 AM
I got this to work by specifying...

rgvBulkEntry.ClipboardPasteMode = GridViewClipboardPasteMode.Cells | GridViewClipboardPasteMode.OverwriteWithEmptyValues;
0
Combinations
Top achievements
Rank 1
answered on 14 Jan 2013, 03:36 PM
Thanks, this helped me!
Tags
GridView
Asked by
Matthew
Top achievements
Rank 1
Answers by
Matthew
Top achievements
Rank 1
Combinations
Top achievements
Rank 1
Share this question
or