FilterRepeater Class
Represents a control that enumerates table columns that can be filtered.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
The FilterRepeater control is a control in the ASP.NET Dynamic Data framework. It automatically renders controls that can be used to filter data rows that are displayed for a table. The filters work by providing a list of Where parameters to the data source for each supported column type. By default, Dynamic Data filters foreign-key and Boolean columns and renders them by using a DropDownList list control.
The FilterRepeater control is a specialized Repeater control that automatically binds to a collection of filterable columns for the table that is displayed in the current page. For example, if a request is made for /Products/List.aspx, the FilterRepeater control binds to the columns in the Products table. The table is chosen based on the route that matches the request. It can also be overridden by setting the TableName and ContextTypeName properties of the FilterRepeater control.
To display the filter UI, the ItemTemplate template of the FilterRepeater control must contain a control with a known ID. By default, the known ID is "DynamicFilter". The control in the item template must derive from FilterUserControlBase. When data binding occurs, the FilterRepeater control initializes an instance of the filter control with information about the column to filter.
The following example shows how the ControlId property of the DynamicControlParameter object is set to the ID of the FilterRepeater control.
- AspNetHostingPermission
for operating in a hosted environment. Security action: LinkDemand. Associated enumeration: AspNetHostingPermissionLevel.Minimal
- AspNetHostingPermission
for operating in a hosted environment. Security action: InheritanceDemand. Associated enumeration: AspNetHostingPermissionLevel.Minimal
System.Web.UI.Control
System.Web.UI.WebControls.Repeater
System.Web.DynamicData.FilterRepeater
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.