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,
I am using a grid with ListBoxSelectionMode = SelectionMode.MultiExtended
When copy and pasting, I only want the content of the current cell to be copied (not the whole selection), but I also want to put in something in the clipboard.
I tried using:
e.Handled = True
e.Result = True
gcAttributes.Model.CutPaste.CopyCellsToClipboard(e.RangeList, False)
Clipboard.SetDataObject(sbText.ToString)
my e.rangelist is just the
That seems to copy the text, but when I''m pasting, the grid always puts the copied value in the first column. I think this is because I''m using the listbox selection mode.
Is there a workaround this?
Thanks.
ADAdministrator Syncfusion Team October 4, 2004 09:34 PM UTC
So, you want to control where things are pasted?
If so, try handling the ClipboardPaste event and just explicitly set the current cell (calling grid.Selections.Clear and then using grid.CurrentCell.MoveTo to position the current cell where you want it to be). Then the default paste should start the paste where you set the current cell.