ObjectDesignerDataSourceView Class

Definition

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

public ref class ObjectDesignerDataSourceView : System::Web::UI::Design::DesignerDataSourceView
public class ObjectDesignerDataSourceView : System.Web.UI.Design.DesignerDataSourceView
type ObjectDesignerDataSourceView = class
    inherit DesignerDataSourceView
Public Class ObjectDesignerDataSourceView
Inherits DesignerDataSourceView
Inheritance
ObjectDesignerDataSourceView

Remarks

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.

Constructors

ObjectDesignerDataSourceView(ObjectDataSourceDesigner, String)

Initializes a new instance of the ObjectDesignerDataSourceView class.

Properties

CanDelete

Gets a value that indicates whether the associated data source control as it is currently configured can perform a Delete operation.

CanInsert

Gets a value that indicates whether the associated data source control as it is currently configured can perform an Insert operation.

CanPage

Gets a value that indicates whether the associated data source control can perform server-based paging.

CanRetrieveTotalRowCount

Gets a value that indicates whether the associated data source control can return the total number of rows that are returned by a query.

CanSort

Gets a value that indicates whether the associated data source control can sort rows.

CanUpdate

Gets a value that indicates whether the associated data source control as it is currently configured can perform an Update operation.

DataSourceDesigner

Gets a reference to the designer that created this DesignerDataSourceView control.

(Inherited from DesignerDataSourceView)
Name

Gets the name of the view as provided when this instance of the DesignerDataSourceView class was created.

(Inherited from DesignerDataSourceView)
Schema

Gets a schema that describes the data source view that is represented by this view object.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetDesignTimeData(Int32, Boolean)

Generates design-time data that matches the schema of the associated data source control.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also