Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a grid with 4 columns in which amount column must be filled before adding/editing a row in the grid.
I handled this using required filed validator on edititem template and footer template
with separate validation group and on add /edit button click in the grid it is handled ..
This is working fine..

In the page I have another button and another controls outside grid. WHen I click save the footer validatior for the grid is firing but at the same time data saved also.


Can anyone help me?
Posted
Comments
hypermellow 19-Mar-15 7:52am    
It's difficult to guess ... as you haven't posted any of your code.
Can you confirm every control on your page has a value specified for its ValidationGroup property?
Member 10112611 19-Mar-15 7:57am    
yes.. I will paste code now

1 solution

Watch this below youtube video. It will provide solution.
Basically you need to differentiate the controls you want to validate with different "validationGroup" property.

https://www.youtube.com/watch?v=ZUCsHxBEPeg&index=24&list=PL6n9fhu94yhW1NryGv6LxX4U4b07T4RlI[^]

At time 11:00, this issue is deeply discussed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900