Raises the Page Index Changing and Page Index Changed events.event is raised when a button listed in the previous table is clicked, it is recommended that you use the events listed in the table for the operation.The Required Field Validator for the Text Box control in the Description column is placed in the Edit Item Template of the Grid View control.This is because the Text Box is in the Edit Item Template and that is what we need to validate.Extra cash helps pay for the hosting services and speed things up around here, and makes this website possible.Export Button is a custom control that let's you export your Data Grid or Text Box data to several different formats.
The Grid View looks something like this: If you carefully read the HTML code of the Grid View which I have posted above then you will notice one very special thing.
You will also notice that when you loose focus from the control the validation control event will be fired.
This is because the validation controls have a property "Enable Client Script" which means that the validation will be fired on the client side first and then on the server side. Validate does not occur then no validation will be fired.
If you put the Required Field Validator in any Item Template or any other Template supported by Grid View you will recieve an error saying that Grid View is unable to find the control to validate.
I have done the same thing with the Drop Down List.