✅ Copy value of DataGridCell to clipboard in WPF app
when you select a DataGridCell in a DataGrid from WPF and try to copy its value using ctrl + c keys the default behaviour is to copy the whole row rather than the focused cell's value, which me and my team find to be very weird so we wanna change this behaviour.
I'm not sure why it isn't working and I don't know how to further debug this issue, so I appreciate any help.
on the image you can see a snippet of what the DataGrid looks like. When I select either of those cells and press ctrl + c, the
I'm not sure why it isn't working and I don't know how to further debug this issue, so I appreciate any help.
on the image you can see a snippet of what the DataGrid looks like. When I select either of those cells and press ctrl + c, the
text variable holds the expected value of "test" but somehow the clipboard text still ends up being "test test" instead (the whole row) and I don't understand what's going on here