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.
JJJisha Joy Syncfusion Team September 25, 2008 09:39 AM UTC
Hi Quenton,
The method Model.CutPaste.Paste() will paste whatever data you got in the Clipboard. If you set Clipboard flags to 0, it will not allow pasting into cell.
Please let me know if you have any further questions.
Regards, Jisha
ADAdministrator Syncfusion Team September 25, 2008 12:20 PM UTC
Hi Jisha :
Thanks for your respond .
And my problem is how can I limit user using cut and paste "only" in Grid .
ex: I write a button to let user can cut and paste data in grid .
And I wnat user can't cut data "form other place" to "paste into grid" .
Is any method can do that ?
By the way I have another question is :
The GridControl.ResizeColsBehavior can stop user to draw Grid Column width .
And how to limit only "1" Column can't draw ?
Best Regards, Quenton.
JJJisha Joy Syncfusion Team September 26, 2008 06:33 AM UTC
Hi Quenton,
Issue 1:
This can be achieved by handling the PasteCellText event and canceling it. If you copy some text from Excel and paste it into the grid, then the PasteCellText event will be hit.
this.gridControl1.PasteCellText += new Syncfusion.Windows.Forms.Grid.GridPasteCellTextEventHandler(gridControl1_PasteCellText);