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
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?
ADAdministrator Syncfusion Team October 4, 2004 04:34 PM
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.