The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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();