Hi Ben,
As for the Validation Control for the nested entry fields in DataGrid's
columns problem, this does be a normal behavior when we use validation
control in the sub container of a template databound control. Such as
DataGrid, DataList or Repeater, these template databound controls has no
design-time defined nested child controls. Their sub controls are
dynamically generated via the datasource bound to it. And each child
control's id will have a index number at the end of it. So the serverside
validation will not work for such scenario. And we need to use clientside
script to perform the validation.
In addition, as you mentioned that when you use clientside validation, the
postiion of the page will auto reset to top of the page after the client
validation occur. But based on my test( I use a RequiredFieldValidator) ,
the page will remain the position where the RequiredFieldValidator located.
Have you used a ValidationSummary control? Maybe it will be the cause of
the problem.
Anyway, if you have anyother findings or ideas, please feel free to post
here. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx