We check the value entered in the Text Box using args. Especially the following events are important for validation point of view.Out of these events Row Updating and Row Deleting are possibly the most common ones.In order to do so select “Edit Columns…” from the smart tag of the Grid View. Select Company Name and Contact Name fields and click on “Covert this field into a Template Field” link.
The Grid View Update Event Args class has three important collections – Old Values, New Values and Keys.You can not attach validation controls directly to these Text Boxes.We need to convert these Bound Fields to Template Fields. NET 2.0 Grid View control allows us to quickly edit and delete records. Drag and drop an SQL Data Source control on the web form.However, most of the real world cases call for validating the data being edited or deleted. Open its smart tag and choose “Configure Data Source” option to start Configure Data Source wizard.