The Details View control provides built-in capabilities that allow the user to update, delete, insert, and page through items in the control. In edit mode, the Edit button is replaced with an Update and a Cancel button.
But when I try to Update the table with a new value from the Drop Down List the table does not get updated with the new value. Different row field types determine the behavior of the rows in the control. The following table lists the different row field types that can be used. Auto Generate Rows property is set to true, which automatically generates a bound row field object for each field of a bindable type in the data source. The Details View control supports the following features: Each data row in the Details View control is created by declaring a field control. However, to make use of the Details View control's advanced capabilities you must explicitly declare the row fields to include in the Details View control. The row fields specified are added to the Details View. Note: Explicitly declared row fields can be displayed in combination with automatically generated row fields. Automatically generating the rows provides a quick and easy way to display every field in the record. Fields collection allows you to programmatically manage the row fields in the Details View control. Now, we have Edit button on Details View control in ASP. When we click Edit Button that time we need to change mode of Details View control for Editing Records. For Editing set Autogenerate Edit Button = True at property of Details View control. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. NET provides an input request validation feature to block script and HTML in user input. Use one of the following methods to bind the Details View control to the appropriate data source type: For more information on data binding, see ASP. This control can be used to display user input, which might include malicious client script.The Details View control allows you to edit, delete, and insert records.In this post I will explain an issue related with Read-only data fields.