Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Gridview Validation

Reply
Thread Tools

Gridview Validation

 
 
Guy_B
Guest
Posts: n/a
 
      06-17-2010
Hi

This is a vb (200 asp.net site.

I'm using validators in a gridview control. The columns have been converted
to templates and, when editing the data the validation works as expected.

However, when the gridview first goes into Edit mode, even if the existing
data fails validation, the validators don't highlight the errors UNTIL the
data has been manually edited and the field loses focus. Only then do the
validators correctly show the validation errors.

How can I programatically force the validators to check the validation and
display their messages when the gridview is first displayed, before the data
is edited ?

btw: The validators are warning the user about business rules so it's
possible that data from the database may fail validation.

Cheers - G
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
ASP.NET Web Forms Validation Controls are Server-Side or Client-Side Validation? Matt ASP .Net 14 01-30-2004 09:15 AM
Web form validation vs object validation Colin Basterfield ASP .Net 1 11-29-2003 12:10 AM
validation summary doesnt display when there's client-side validation Libs ASP .Net 0 06-25-2003 03:05 PM
Re: only custom validation control does server side validation? Colin Mackay ASP .Net 0 06-25-2003 07:54 AM



Advertisments