Validations attibutes are not getting applied when addin new row
Is there any way to do this?
Hi,
Validation should occur in the AddNewRow exactly like it does for a normal data row. Perhaps, you're passing in a different data object in the DataObjectRequested event that doesn't have the validation attributes?
-SteveZ
Does it differ if the values are dropdowns and the valueid exists in main table and the detailname exists in other table?
If this is for the same application as your last question about RowAdded not firing, then the same thing applies.
Validation occurs after the RowAdding event, thus, b/c you're canceling the add, no validation occurs.
How to resolve this "Validation occurs after the RowAdding event, thus, b/c you're canceling the add, no validation occurs..."
Any solution for this?