System.Web.UI.WebControls.ObjectDataSourceView Members

The members of System.Web.UI.WebControls.ObjectDataSourceView are listed below.

See Also: Inherited members from System.Web.UI.DataSourceView

Public Constructors

Public Properties

[read-only]
override
CanDeletebool.

Gets a value indicating whether the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the current System.Web.UI.WebControls.ObjectDataSource control supports the delete operation.

[read-only]
override
CanInsertbool.

Gets a value indicating whether the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the current System.Web.UI.WebControls.ObjectDataSource control supports the insert operation.

[read-only]
override
CanPagebool.

Gets a value indicating whether the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the current System.Web.UI.WebControls.ObjectDataSource control supports paging through the retrieved data.

[read-only]
override
CanRetrieveTotalRowCountbool.

Gets a value indicating whether the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the current System.Web.UI.WebControls.ObjectDataSource control supports retrieving the total number of data rows, in addition to the set of data.

[read-only]
override
CanSortbool.

Gets a value indicating whether the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the current System.Web.UI.WebControls.ObjectDataSource control supports a sorted view on the underlying data source.

[read-only]
override
CanUpdatebool.

Gets a value indicating whether the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the current System.Web.UI.WebControls.ObjectDataSource control supports the update operation.

ConflictDetectionSystem.Web.UI.ConflictOptions.

Gets or sets a value that determines how the System.Web.UI.WebControls.ObjectDataSource control performs updates and deletes when data in a row in the underlying data storage changes during the time of the operation.

ConvertNullToDBNullbool.

Gets or sets a value indicating whether System.Web.UI.WebControls.Parameter values that are passed to an update, insert, or delete operation are automatically converted from null to the DBNull.Value value.

DataObjectTypeNamestring.

Gets or sets the name of a class that the System.Web.UI.WebControls.ObjectDataSource control uses for a parameter in a data operation. The System.Web.UI.WebControls.ObjectDataSource control uses the specified class instead of the System.Web.UI.WebControls.Parameter objects that are in the various parameters collections.

DeleteMethodstring.

Gets or sets the name of the method or function that the System.Web.UI.WebControls.ObjectDataSourceView object invokes to delete data.

[read-only]
DeleteParametersParameterCollection.

Gets the parameters collection that contains the parameters that are used by the ObjectDataSourceView.DeleteMethod method.

EnablePagingbool.

Gets or sets a value indicating whether the data source control supports paging through the set of data that it retrieves.

FilterExpressionstring.

Gets or sets a filtering expression that is applied when the business object method that is identified by the ObjectDataSourceView.SelectMethod property is called.

[read-only]
FilterParametersParameterCollection.

Gets a collection of parameters that are associated with any parameter placeholders that are in the ObjectDataSourceView.FilterExpression string.

InsertMethodstring.

Gets or sets the name of the method or function that the System.Web.UI.WebControls.ObjectDataSourceView object invokes to insert data.

[read-only]
InsertParametersParameterCollection.

Gets the parameters collection that contains the parameters that are used by the ObjectDataSourceView.InsertMethod method.

MaximumRowsParameterNamestring.

Gets or sets the name of the data retrieval method parameter that is used to indicate the number of records to retrieve for data source paging support.

OldValuesParameterFormatStringstring.

Gets or sets a format string to apply to the names of the parameters for original values that are passed to the Delete or Update methods.

SelectCountMethodstring.

Gets or sets the name of the method or function that the System.Web.UI.WebControls.ObjectDataSourceView control invokes to retrieve a row count.

SelectMethodstring.

Gets or sets the name of the method or function that the System.Web.UI.WebControls.ObjectDataSourceView control invokes to retrieve data.

[read-only]
SelectParametersParameterCollection.

Gets the parameters collection containing the parameters that are used by the ObjectDataSourceView.SelectMethod method.

SortParameterNamestring.

Gets or sets the name of the data retrieval method parameter that is used to specify a sort expression for data source sorting support.

StartRowIndexParameterNamestring.

Gets or sets the name of the data retrieval method parameter that is used to indicate the integer index of the first record to retrieve from the results set for data source paging support.

TypeNamestring.

Gets or sets the name of the class that the System.Web.UI.WebControls.ObjectDataSource control represents.

UpdateMethodstring.

Gets or sets the name of the method or function that the System.Web.UI.WebControls.ObjectDataSourceView object invokes to update data.

[read-only]
UpdateParametersParameterCollection.

Gets the parameters collection containing the parameters that are used by the ObjectDataSourceView.UpdateMethod method.

Protected Properties

[read-only]
IsTrackingViewStatebool.

Gets a value indicating whether the System.Web.UI.WebControls.ObjectDataSourceView object is saving changes to its view state.

Public Methods

Delete(IDictionary, IDictionary) : int

Performs a delete operation by calling the business object method that is identified by the ObjectDataSourceView.DeleteMethod property using the specified keys and oldValues collections.

Insert(IDictionary) : int

Performs an insert operation by calling the business object method that is identified by the ObjectDataSourceView.InsertMethod property using the specified values collection.

Select(System.Web.UI.DataSourceSelectArguments) : IEnumerable

Retrieves data from the object that is identified by the ObjectDataSourceView.TypeName property by calling the method that is identified by the ObjectDataSourceView.SelectMethod property and passing any values in the ObjectDataSourceView.SelectParameters collection.

Update(IDictionary, IDictionary, IDictionary) : int

Performs an update operation by calling the method that is identified by the ObjectDataSourceView.UpdateMethod property and using any parameters that are supplied in the keys, values, or oldValues collections.

Protected Methods

override
ExecuteDelete(IDictionary, IDictionary) : int

Performs a delete operation using the ObjectDataSourceView.DeleteMethod method and the specified keys and oldValues collection.

override
ExecuteInsert(IDictionary) : int

Performs an insert operation by calling the business object method that is identified by the ObjectDataSourceView.InsertMethod property using the specified values collection.

override
ExecuteSelect(System.Web.UI.DataSourceSelectArguments) : IEnumerable

Retrieves data from the object that is identified by the ObjectDataSourceView.TypeName property by calling the method that is identified by the ObjectDataSourceView.SelectMethod property and passing any values in the ObjectDataSourceView.SelectParameters collection.

override
ExecuteUpdate(IDictionary, IDictionary, IDictionary) : int

Performs an update operation by calling the method that is identified by the ObjectDataSourceView.UpdateMethod property and using any parameters that are supplied in the keys, values, or oldValues collections.

LoadViewState(object)

Restores previously saved view state for the data source view.

OnDeleted(ObjectDataSourceStatusEventArgs)

Raises the ObjectDataSourceView.Deleted event after the System.Web.UI.WebControls.ObjectDataSourceView object has completed a delete operation.

OnDeleting(ObjectDataSourceMethodEventArgs)

Raises the ObjectDataSourceView.Deleting event before the System.Web.UI.WebControls.ObjectDataSourceView object attempts a delete operation.

OnFiltering(ObjectDataSourceFilteringEventArgs)

Raises the ObjectDataSourceView.Filtering event before the System.Web.UI.WebControls.ObjectDataSourceView object attempts a filtering operation.

OnInserted(ObjectDataSourceStatusEventArgs)

Raises the ObjectDataSourceView.Inserted event after the System.Web.UI.WebControls.ObjectDataSourceView object has completed an insert operation.

OnInserting(ObjectDataSourceMethodEventArgs)

Raises the ObjectDataSourceView.Inserting event before the System.Web.UI.WebControls.ObjectDataSourceView object attempts an insert operation.

OnObjectCreated(ObjectDataSourceEventArgs)

Raises the ObjectDataSourceView.ObjectCreated event after the System.Web.UI.WebControls.ObjectDataSourceView creates an instance of the object that is identified by the ObjectDataSourceView.TypeName property.

OnObjectCreating(ObjectDataSourceEventArgs)

Raises the ObjectDataSourceView.ObjectCreating event before the System.Web.UI.WebControls.ObjectDataSourceView object creates an instance of a business object to perform a data operation.

OnObjectDisposing(ObjectDataSourceDisposingEventArgs)

Raises the ObjectDataSourceView.ObjectDisposing event before the System.Web.UI.WebControls.ObjectDataSourceView object discards an instantiated type.

OnSelected(ObjectDataSourceStatusEventArgs)

Raises the ObjectDataSourceView.Selected event after the System.Web.UI.WebControls.ObjectDataSourceView object has completed a data retrieval operation.

OnSelecting(ObjectDataSourceSelectingEventArgs)

Raises the ObjectDataSourceView.Selecting event before the System.Web.UI.WebControls.ObjectDataSourceView object attempts a data retrieval operation.

OnUpdated(ObjectDataSourceStatusEventArgs)

Raises the ObjectDataSourceView.Updated event after the System.Web.UI.WebControls.ObjectDataSourceView object has completed an update operation.

OnUpdating(ObjectDataSourceMethodEventArgs)

Raises the ObjectDataSourceView.Updating event before the System.Web.UI.WebControls.ObjectDataSourceView object attempts an update operation.

SaveViewState() : object

Saves the changes to the view state for the System.Web.UI.WebControls.ObjectDataSourceView object since the time when the page was posted back to the server.

TrackViewState()

Causes the System.Web.UI.WebControls.ObjectDataSourceView object to track changes to its view state so that the changes can be stored in the System.Web.UI.Control.ViewState object for the control and persisted across requests for the same page.

Public Events

Deleted

Occurs when a erload:System.Web.UI.WebControls.ObjectDataSourceView.Delete operation has completed.

Deleting

Occurs before a erload:System.Web.UI.WebControls.ObjectDataSourceView.Delete operation.

Filtering

Occurs before a filter operation.

Inserted

Occurs when an erload:System.Web.UI.WebControls.ObjectDataSourceView.Insert operation has completed.

Inserting

Occurs before an erload:System.Web.UI.WebControls.ObjectDataSourceView.Insert operation.

ObjectCreated

Occurs after the System.Web.UI.WebControls.ObjectDataSourceView object creates an instance of the type that is identified by the ObjectDataSourceView.TypeName property.

ObjectCreating

Occurs before the System.Web.UI.WebControls.ObjectDataSourceView object creates an instance of the type that is identified by the ObjectDataSourceView.TypeName property.

ObjectDisposing

Occurs when the System.Web.UI.WebControls.ObjectDataSourceView object discards an instance of an object that it has created.

Selected

Occurs when a data retrieval operation has completed.

Selecting

Occurs before a data retrieval operation.

Updated

Occurs when an erload:System.Web.UI.WebControls.ObjectDataSourceView.Update operation has completed.

Updating

Occurs before an erload:System.Web.UI.WebControls.ObjectDataSourceView.Update operation.

Explicitly Implemented Interface Members