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): DynamicFilter Control

This section provides information about the following:

  • DynamicFilter 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 DynamicFilter control provides user interface (UI) elements that control filtering for a column of the current table. The following example shows how to enable the user to select which lines of the current table to display, based on the value of the Category field.

<asp:DynamicFilter runat="server" ColumnName="Category" />

By default, a drop-down list is used to provide the UI. You can customize this by setting the FilterStyle property to DropDown, List, or Radio, as shown in the following example.

<asp:DynamicFilter runat="server" ColumnName="Category" FilterStyle="Radio" />

This control has the following properties:

  • ControlID. Specifies the name of a DropDownList, List, or RadioButton control. DynamicFilter uses the specified control to display the filter values, instead of creating a control with default settings. This enables you to customize the appearance of the filter UI.
  • ColumnName. Specifies the table column to be filtered. The column does not have to be visible in the DynamicList control that displays the list of rows.
  • FilterStyle. Specifies the style of control used to display the filter values if the DynamicFilter control creates its own control. Values can be DropDown, List, or Radio.

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.