Copy Paste of rows

Hi, I would like to copy and paste entire rows.(text and style), I try this: GridControl1.CutPaste.CopyRange(GridRangeInfo.Rows(6, 6)) 'Do a selection of a blank row GridControl1.Selections.Add(GridRangeInfo.Rows(7, 7)) GridControl1.CutPaste.Paste() When I ask the function "CanPaste", it returns TRUE But doesn't work... What's wrong Thanks

1 Reply

AD Administrator Syncfusion Team October 14, 2002 06:21 AM UTC

There appears to be a problem with the copy code recognizing a row range. We will look into this and get it corrected. In the meantime, I think your code will work OK if you use a cell range for the row, something like this: int row = 2; this.gridControl1.CutPaste.CopyRange(GridRangeInfo.Cells(row, 1, row, this.gridControl1.ColCount)); this.gridControl1.Selections.Clear(); this.gridControl1.Selections.Add(GridRangeInfo.Row(3)); this.gridControl1.CutPaste.Paste();

Loader.
Up arrow icon