Validation Problem

Validation Problem

Old forum URL:

heisal posted on Friday, November 05, 2010

I have a gridview and a button is clicked, the copy of that row is added at the last row. But validation is not  working for the new row added(last row).What changes should be done to validate the new row added?

RockfordLhotka replied on Friday, November 05, 2010

How are you creating that new item?

If you use the data portal the rules will run automatically.

But if you use the constructor then you prevent CSLA from doing normal object initialization, and you assume that responsibility yourself. At a minimum, you'll probably want to have the object call its CheckRules method - that'll get the rules checked.

Copyright (c) Marimer LLC