We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Disable auto column increment when cut/pasting.

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?

1 Reply

AD Administrator 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

Loader.
Up arrow icon