|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Add Dynamic Behavior to Data-Bound Controls by Using a DynamicField
Updated: July 2008
This topic describes how you can add ASP.NET Dynamic Data functionality by using the DynamicField field in a GridView or a DetailsView control by using the designer. A DynamicDataManager control must be present on the page in order to add DynamicField objects to the data-bound control using the designer.
To add a dynamic field to a GridView or DetailsView control
The Fields window is displayed.
Uncheck Auto-generate fields.
In the Available fields list, select DynamicField and then click Add.
Set the DataField property to the name of the data column that you want to bind the dynamic field to.
Repeat steps 4 and 5 for each data field that you want to display.