Wednesday, January 24, 2007

Input validation can't be reused in GridView templates

In the GridView, it's possible to define a blank template and another template will be used in place, e.g. if InsertItemTemplate is empty, the EditItemTemplate is used instead. Therefore, if they are supposed to be the same, just make sure EditItemTemplate is blank.

However, one thing to note is that the input validation control will not be duplicated. Therefore, if input validation is required (which it usually is), then, the control must be duplicated.

No comments: