This documentation is archived and is not being maintained.

IDynamicDataSource Interface

Represents a data source for a Dynamic Data control.

Namespace:  System.Web.DynamicData
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public interface IDynamicDataSource : IDataSource

The IDynamicDataSource type exposes the following members.

Public propertyAutoGenerateWhereClauseGets or sets a value that indicates whether the IDynamicDataSource control dynamically creates a Where clause based on values defined in the WhereParameters collection.
Public propertyContextTypeGets the type of the DataContext class.
Public propertyEnableDeleteGets or sets a value that indicates whether the data source view supports the ability to delete rows.
Public propertyEnableInsertGets or sets a value that indicates whether the data source view supports the ability to insert rows.
Public propertyEnableUpdateGets or sets a value that indicates whether the data source view supports the ability to update rows.
Public propertyEntitySetNameGets or sets the entity set name.
Public propertyWhereGets or sets a value that specifies the condition that must be true for a record to be included in the retrieved data by a Where clause.
Public propertyWhereParametersGets a collection of parameters that are used to create a Where clause.

Public methodGetViewGets the named data source view associated with the data source control. (Inherited from IDataSource.)
Public methodGetViewNamesGets a collection of names representing the list of view objects associated with the IDataSource interface. (Inherited from IDataSource.)

Public eventDataSourceChangedOccurs when a data source control has changed in some way that affects data-bound controls. (Inherited from IDataSource.)
Public eventExceptionOccurs when a data field fails to validate.

Public Extension MethodExpandDynamicWhereParametersExpands dynamic filters into Where parameters that are usable by the data source. (Defined by DynamicDataExtensions.)
Public Extension MethodGetDefaultValuesGets the collection of the default values for the specified data source. (Defined by DynamicDataExtensions.)
Public Extension MethodGetMetaTableGets the metadata for a table in the specified data source object. (Defined by DynamicDataExtensions.)
Public Extension MethodGetTableReturns the MetaTable object that is associated with the specified data source control. (Defined by DynamicDataExtensions.)
Public Extension MethodTryGetMetaTableDetermines whether table metadata is available. (Defined by DynamicDataExtensions.)

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.