This project has moved and is read-only. For the latest updates, please go here.


BookLibrary: Backspace in a cell doesn't produce a validation error.


Steps to reproduce:
  1. Start BookLibrary sample application
  2. Select the first cell in the DataGrid (title of the first book)
  3. Press the Backspace key
  4. Press the Tab key to commit the change
No validation error is visible. But it should be shown because the Title property is defined as Required.


jbe2277 wrote Aug 27, 2011 at 3:52 PM

This is a known bug of the WPF4 DataGrid. Backspace in a cell produces the string "\b". So the string is not empty and the Required validation rule passes.

See also: Microsoft Connect - Backspace in a cell in the WPF DataGrid produced \b in the text

jbe2277 wrote Feb 3, 2013 at 2:23 PM

This issue has been fixed in the .NET Framework 4.5.

wrote Feb 22, 2013 at 1:43 AM

wrote May 16, 2013 at 12:50 PM

wrote May 16, 2013 at 12:50 PM

wrote Jun 14, 2013 at 8:33 AM