This documentation is archived and is not being maintained.

ObjectDesignerDataSourceView Class

Provides the design-time view that is associated with the ObjectDataSourceDesigner class.

Namespace:  System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public class ObjectDesignerDataSourceView : DesignerDataSourceView

The ObjectDataSource control represents a data source that calls methods of a business object in order to perform the Delete, Insert, Select, and Update database-type operations.

The ObjectDataSourceDesigner class provides design-time support for the ObjectDataSource control in a visual designer. An ObjectDesignerDataSourceView object provides members that indicate whether various database-type operations can be performed and that return schema and design-time data.

The CanInsert, CanUpdate, and CanDelete properties indicate whether the associated ObjectDataSource control can perform the corresponding database-type operations.

The CanSort property, which is always true, indicates that the associated control can sort rows. The CanPage and CanRetrieveTotalRowCount properties, which are always false, indicate that the associated control cannot perform server paging and cannot return the total number of rows in a query, respectively.

The Schema property gets a schema that describes the data source view that is represented by this view object. The GetDesignTimeData method generates design-time data that matches the schema of the associated control.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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.

.NET Framework

Supported in: 3.5, 3.0, 2.0