Is there a way to collectively validate data in a GridView at once, and then fire a data validation control to display a required field label?
From what I understand, the validation control has to be implemented in a template control and then only validates the actual row being edited.
My thoughts were to create a method that iterates through all the GridView rows when clicking a button. That works but I am still not able to access the validation control for that row.
The reason I ask is if you are only validating the edited row, someone could answer some of the questions, but not all, and then redirect to another page.
Another idea I had would be to use JavaScript DOM.
Any thoughts?
From what I understand, the validation control has to be implemented in a template control and then only validates the actual row being edited.
My thoughts were to create a method that iterates through all the GridView rows when clicking a button. That works but I am still not able to access the validation control for that row.
The reason I ask is if you are only validating the edited row, someone could answer some of the questions, but not all, and then redirect to another page.
Another idea I had would be to use JavaScript DOM.
Any thoughts?