


A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.
How do I grab the new values from these textboxes and proceed further?
Storing datatable in View State is not a good practice as it increases the size of your page and reduces the performance, also View State can be deciphered on the client side, so the Data Table is not secure.
When I click on the edit button the update and cancel button appear.
Upon modifying the values in textbox which come from Edit Item Template , the new values dont show in the event handler rowupdating(), instead I get the values which appear when the page was rendered.
Sql Command command Type=2 records Affected=1 row=System.
event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
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.
This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.
A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.