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 all,
I wish to allow users to cut and paste into a gridcontrol. However when cutting and pasting into the grid I do not wish the grid to automatically increase the number of columns (I do however want the number of rows to increase automatically) when pasting a grid area that falls outside the current grid which the data is to be pasted into.
What would be the most appropiate way to disallow the gridcontrol to increase the number of columns, but still allow the cut and paste of data?
ADAdministrator Syncfusion Team March 29, 2005 09:39 AM UTC
If you do not want to auto-append columns, there is a flag you can set in the ClipboardFlags property.
//C#
this.gridControl1.CutPaste.ClipboardFlags |= (GridDragDropFlags.NoAppendCols;
''VB.NET
Me.GridControl1.Model.CutPaste.ClipboardFlags = Me.GridControl1.Model.CutPaste.ClipboardFlags _
Or GridDragDropFlags.NoAppendCols