Monday, March 26, 2012

Validating within datagrids

hi,
how can i use validators after switching a detailsview into editing mode?

i mean, do i really have to generate a complete new edit-template for this detailsview? this is painful as my detailsview contains 20 fields.If you want to use the validators (especially client side) then yes, you are better off creating the EditTemplate at the design time. (Unless all you need is a simple set of validators for each field, say RequiredFieldValidator). In which case you could build those in your code in the ItemDataBound event but this will be even a greate overkill, IMO)

Cheers

No comments:

Post a Comment