AJAX Quickstarts   |   Silverlight Quickstarts   |   Dynamic Data Controls Quickstarts   |   Services Quickstarts   |   Dynamic Languages Quickstarts   |   ASP.NET AJAX Home   |      |  I want my samples in...     

ASP.NET Futures (2007): DynamicAutoData Control

This section provides information about the following:

  • DynamicAutoData control. This control is one of a set of dynamic data controls that obtain schema information at run time, provide default display formats according to common user expectations, and enable you to easily customize those formats.

The DynamicAutoData control creates a user interface for a database table. This includes the following:

  • A DynamicList control that displays the records in the current table. A caption that includes the table name is displayed over the control.
  • A set of DynamicFilter controls that enable the user to filter the list by specifying values for each filterable column. A caption identifies the filter controls, and each control is captioned with the name of the field it filters.
  • A DynamicRssLink control that provides an RSS feed for the table.
  • A DynamicDetails control that displays the currently selected record in the table.
  • A DynamicInsert control that enables the user to insert new records into the table. A caption identifies the control's function.
<asp:DynamicAutoData runat="server" />

The DynamicList and DynamicDetails controls that the DynamicAutoData control creates are configured to allow update and delete operations.

Customizing Control Behavior

To control what columns are displayed, and in what order, provide a GetColumns method for the page. GetColumns takes no arguments and returns an IEnumerable list of column names. For dynamic languages, this has the effect of overriding the GetColumns method of the base class for the page. For statically compiled languages, your GetColumns method must explicitly override the base class method.

To customize each row before it displays, provide an InitRow method for the page. InitRow takes one argument that contains GridViewRow object that is being processed. It does not return a value. For dynamic languages, this has the effect of overriding the InitRow method of the base class for the page. For statically compiled languages, the InitRow method must explicitly override the base class method.

See Also

Introduction: Dynamic Data Controls for ASP.NET


This topic is Microsoft ASP.NET Futures pre-release documentation and is unsupported by Microsoft. Blank topics are included as placeholders and existing content is subject to change in future releases.