The Category ID and Category Name are the Bound columns which are bound to the "Category ID" and "Category Name" fields in the Categories table in Northwind Database.
This is because the Text Box is in the Edit Item Template and that is what we need to validate.
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.
Since the Drop Down List is in the Item Template of the Grid View control so I placed the Required Field Validator inside the Item Template right beneath the Drop Down List control.
It is a common scenario that you want the first item of the Drop Down List to be some message saying "Please select an item".
For this you can add the item dynamically inside the Grid View_Row Data Bound event.Don't forget to assign the value property of the Drop Down List to "Select an item" or any other text you like.In this article I will show you that how you can validate the controls which are inside the Grid View control.For this I will make the editable Grid View and use the Required Field Validator for the Text Boxes.I will also show you that how you can use validation against the Drop Down List control which is contained inside the Grid View control.As you can see that two Bound Columns and two Template Columns.