Home Forums WPF controls Xceed DataGrid for WPF Force validation on entire InsertionRow

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26342 |

    Hi all,

    I have a standard DataGridControl with an InsertionRow, whose cells are bound to ValidationRules. I’ve noticed that the cells are only validated when the value in the cell has been changed. What I would like to do, is to check the empty cells in the InsertionRow as well, since I want the user to fill in <u>all</u> the cells. In the current scenario, it is possible for the user to enter an empty row into the collection 🙁

    Any idea on how I can fix this (force validation on unchanged cells)?

    Thanks in advance,
    Frances

    Imported from legacy forums. Posted by Frances (had 2102 views)

    User (Old forums)
    Member
    Post count: 23064

    I fixed this myself, using ValidationRules with ValidationMode=”RowEndingEdit”. The problem in my case is that I set the ItemsSource of the DataGrid to a DataGridCollectionView in the code-behind 🙁

    Imported from legacy forums. Posted by Frances (had 3284 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.