How do I select a single cell in a WPF datagrid?

epsen picture epsen · Apr 26, 2010 · Viewed 16k times · Source

When I click a cell in a WPF datagrid, the whole row is selected, and when I press Ctrl + C to copy the content, the whole row i copied...

How do I select and copy the content of a single cell?

Answer

Balle picture Balle · Jan 11, 2011

Use SelectionUnit Property of Datagrid.