1

Resolved

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

description

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.

comments

jbe2277 wrote Aug 27, 2011 at 2: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

http://connect.microsoft.com/VisualStudio/feedback/details/625773/backspace-in-a-cell-in-the-wpf-datagrid-produced-b-in-the-text

jbe2277 wrote Feb 3, 2013 at 1:23 PM

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

wrote Feb 22, 2013 at 12:43 AM

wrote May 16, 2013 at 11:50 AM

wrote May 16, 2013 at 11:50 AM

wrote Jun 14, 2013 at 7:33 AM