Problem copying and pasting in Grid if range includes an empty row

Hi, If I select a group of cells in the grid of which one of the rows of the selected range to be copied is empty, then i run into the problem that the paste operation pastes up to this blank line. Copy using grid.CutPaste.ClipboardFlags=GridDragDropFlags.Text; grid.CutPaste.Copy(); If look at the data in the clipboard (Grid has 4 columns) 58 67 89 23 89 67 56 33 56 23 34 12 If I call paste like grid.CutPaste.ClipboardFlags=GridDragDropFlags.Text; grid.CutPaste.Paste(); the paste operation halts at the blank line. Am I doing this wrong or is this a bug. The only solution I can think of which is cleaning up the data (since the blank line is actually "33\r\n\t\t\t\r\n56") may not work due to the fact that i may be copying > 1,000,000 cells which contain numbers and words and would casue a large performance hit

1 Reply

AD Administrator Syncfusion Team April 27, 2004 11:32 PM UTC

Hi Vinood, I tried to see the problem in the attached sample. I can able to copy a range of rows which has empty cells to the other grid. Are you handling any copy/paste events that might affect this? What version of the grid are you using? Thanks, Jay N. Forum_Copy_Paste_8524.zip

Loader.
Up arrow icon