views:

34

answers:

2
+4  Q: 

Validation Control

I placed some validation controls on my grid view template. The only problem is that it is taking a lot of space vertically. Is there a property to set to solve this problem?

+5  A: 

Set the validator's Display property to "Dynamic".

tloflin
Thanks That solved it.
James
+1  A: 

Can you post your template and validation control markup?

It probably has to do with wrapping and the length of your error text. You probably want to set the Display property to Dynamic.

If you have a lot of validators you should also consider using a validation summary and then clearing the text values and making the summary row message specific. This could save a lot of clutter in your grid when the validators do trigger.

Kelsey
Thank you, the set the display property did the trick.
James