Why are there strange backspaces in my WPF file?

Our software uses a DataGrid throughout the entire user interface to display editable lists. While editing some metadata, I wanted to delete the text in a specific column for many rows. It's pretty fast if you get into the rhythm of F2-Backspace-Enter, F2-Backspace-Enter, F2-Backspace-Enter ....

Things don't go quite so well if you miss the F2 part of the pattern and just press Backspace-Enter on a cell. The WPF DataGrid will actually replace the contents of the cell with the backspace character. Depending on how you look at your string, this might show up as 0 × 08,, \ u0008, or \ b.

What's on earth?

+3


source to share


1 answer


This CodePlex post confirms a bug in the DataGrid and includes some workarounds. At our end, the current fix is ​​to simply ignore lines that have a backtick. So they don't end up in XML, which is good because backspace is illegal in XML 1.0.



See also Microsoft Connect issue .

+5


source







All Articles