Hi,
I have a GridView with the following properties:
SelectionMode="Extended" and SelectionUnit="Cell"
The following "paste" code works great when the grid is NOT in edit mode:
However, if a user has double clicked a cell for edit mode and tries to paste, the paste command does not function properly. What seems to be happening is the following sequence:
I have a GridView with the following properties:
SelectionMode="Extended" and SelectionUnit="Cell"
The following "paste" code works great when the grid is NOT in edit mode:
private void Paste_Click(object sender, RoutedEventArgs e)
{
var pasteCommand = RadGridViewCommands.Paste as RoutedUICommand;
pasteCommand.Execute(null, this.radGridView);
}
However, if a user has double clicked a cell for edit mode and tries to paste, the paste command does not function properly. What seems to be happening is the following sequence:
- clicking paste takes the grid out of edit mode
- grid scrolls to top record and focus is set to first cell
- paste occurs on first row, first cell rather than where the user expected to paste content
The above paste command needs to work regardless of whether or not the grid is in editing mode. Please advise.
Thanks,
Brian