I find a solution. First of all, I need the column number of the focused cell. I managed to get it using this code:
DataGridResults.CurrentCell.Column.DisplayIndex;
Then, in the CopyingRowClipboardContent event CopyingRowClipboardContent I have to delete all other column values.
private void DataGridResults_CopyingRowClipboardContent(object sender, DataGridRowClipboardEventArgs e) { int y = 0; for (int i = 0; i < e.EndColumnDisplayIndex; i++) { if (i != DataGridResults.CurrentCell.Column.DisplayIndex) { e.ClipboardRowContent.RemoveAt(i - y); y++; } } }
source share