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.
I am using a Grid Grouping Control that is bound to a List. While I am editing a Cell content, I am able to copy the content using Ctrl + C, while pasting the data if I select a part of text in the cell and Paste (Ctrl + V) it does not paste the data, however, if nothing is selected it pastes fine. Is this a bug or is there a way to correct it? Also is it possible to show the normal context menu for Cut/Copy/Paste that we usually see in any .NET control like textBox?
HAhaneefm Syncfusion Team November 15, 2007 06:49 PM UTC
Hi Arif,
is it possible to show the normal context menu for Cut/Copy/Paste that we usually see in any .NET control like textBox? >>>>>> Yes, you need to set ContextMenu property to display the standard menu in a grid when you right clicked on the cell. Below are the codes:
//for showing the menu when right mouse button is clicked. this.grid.ContextMenu = this.contextMenu1;
Regarding the Pasting Issue: >>>>>>>> You can handle the TableControlCurrentCellKeyDown event of the grid and call the GridTextBoxCellRenderer.Paste method to paste text when the celltext has been selected. Here are the codes: