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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting max number of columns

Thread ID:





21771 Nov 19,2004 06:59 PM UTC Nov 19,2004 10:08 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 19, 2004 06:59 PM UTC

I want to set the max number of columns in the grid to 10, which I do in properties, at design time. However, if the user pastes some data with more than 10 columns, additional columns are added to the grid. How can I prevent this from happening? I would rather that the data from extra columns was not recorded at all or an error was given. Thank you.

Administrator [Syncfusion]
Replied On November 19, 2004 10:08 PM UTC

There is a property flag that controls whether or not rows/columns can be appended during a paste. //C# this.gridControl1.CutPaste.ClipboardFlags |= (GridDragDropFlags.NoAppendCols | GridDragDropFlags.NoAppendRows); ''VB.NET Me.GridControl1.Model.CutPaste.ClipboardFlags = Me.GridControl1.Model.CutPaste.ClipboardFlags _ Or GridDragDropFlags.NoAppendRows _ Or GridDragDropFlags.NoAppendCols


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon