ModelDataSourceView Class
Represents a single view of a ModelDataSource control.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | ModelDataSourceView(ModelDataSource^) | Initializes a new instance of the ModelDataSourceView class. |
| Name | Description | |
|---|---|---|
![]() | CanDelete | Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports the delete operation.(Overrides DataSourceView::CanDelete.) |
![]() | CanInsert | Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports the insert operation.(Overrides DataSourceView::CanInsert.) |
![]() | CanPage | Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports paging through the retrieved data.(Overrides DataSourceView::CanPage.) |
![]() | CanRetrieveTotalRowCount | Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports retrieving the total number of data rows, in addition to the set of data.(Overrides DataSourceView::CanRetrieveTotalRowCount.) |
![]() | CanSort | Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports a sorted view on the underlying data source.(Overrides DataSourceView::CanSort.) |
![]() | CanUpdate | Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports the update operation.(Overrides DataSourceView::CanUpdate.) |
![]() | DataKeyName | Gets the first item in the DataKeyNames array of the data-bound control if the data-bound control is a FormView, ListView, GridView, or DetailsView control. |
![]() | DeleteMethod | Gets or sets the name of the method that the ModelDataSourceView object invokes to delete data. |
![]() | Events | Gets a list of event-handler delegates for the data source view.(Inherited from DataSourceView.) |
![]() | InsertMethod | Gets or sets the name of the method that the ModelDataSourceView object invokes to insert data. |
![]() | ModelTypeName | Gets the data type name for the data bound control. |
![]() | Name | Gets the name of the data source view.(Inherited from DataSourceView.) |
![]() | SelectMethod | Gets or sets the name of the method that the ModelDataSourceView control invokes to retrieve data. |
![]() | UpdateMethod | Gets or sets the name of the method that the ModelDataSourceView object invokes to update data. |
| Name | Description | |
|---|---|---|
![]() | CanExecute(String^) | Determines whether the specified command can be executed.(Inherited from DataSourceView.) |
![]() | CreateSelectResult(Object^) | Returns the result of a Select operation after converting it to an IEnumerable collection if it is not already one. |
![]() | Delete(IDictionary^, IDictionary^, DataSourceViewOperationCallback^) | Deletes a method and gets the result.(Overrides DataSourceView::Delete(IDictionary^, IDictionary^, DataSourceViewOperationCallback^).) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | EvaluateDeleteMethodParameters(IDictionary^, IDictionary^) | Invokes the Delete method and gets the result. |
![]() | EvaluateInsertMethodParameters(IDictionary^) | Invokes the insert method. |
![]() | EvaluateMethodParameters(DataSourceOperation, ModelDataSourceMethod^, IDictionary^) | Evaluates the method parameters for model binding, using the data source operation, the data source method object, and the control values. |
![]() | EvaluateMethodParameters(DataSourceOperation, ModelDataSourceMethod^, IDictionary^, Boolean) | Evaluates the method parameters for model binding, using the data source operation, the data source method object, the control values, and a value that indicates whether this method is called in the page's LoadComplete event handler. |
![]() | EvaluateSelectMethodParameters(DataSourceSelectArguments^, DataSourceSelectResultProcessingOptions^%) | Evaluates the select method parameters and also determines the options for processing the select result, such as auto paging and sorting behavior. |
![]() | EvaluateUpdateMethodParameters(IDictionary^, IDictionary^, IDictionary^) | Invokes the Update method and gets the result. |
![]() | ExecuteCommand(String^, IDictionary^, IDictionary^) | Executes the specified command.(Inherited from DataSourceView.) |
![]() | ExecuteCommand(String^, IDictionary^, IDictionary^, DataSourceViewOperationCallback^) | Executes the specified command.(Inherited from DataSourceView.) |
![]() | ExecuteDelete(IDictionary^, IDictionary^) | Performs a delete operation using the DeleteMethod method.(Overrides DataSourceView::ExecuteDelete(IDictionary^, IDictionary^).) |
![]() | ExecuteInsert(IDictionary^) | Performs an insert operation using the InsertMethod method.(Overrides DataSourceView::ExecuteInsert(IDictionary^).) |
![]() | ExecuteSelect(DataSourceSelectArguments^) | Performs a select operation using the SelectMethod method.(Overrides DataSourceView::ExecuteSelect(DataSourceSelectArguments^).) |
![]() | ExecuteUpdate(IDictionary^, IDictionary^, IDictionary^) | Performs an update operation using the UpdateMethod method.(Overrides DataSourceView::ExecuteUpdate(IDictionary^, IDictionary^, IDictionary^).) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | FindMethod(String^) | Finds the method to be executed. |
![]() | GetDeleteMethodResult(IDictionary^, IDictionary^) | Invokes the delete method and gets the result. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetInsertMethodResult(IDictionary^) | Invokes the insert method and gets the result. |
![]() | GetSelectMethodResult(DataSourceSelectArguments^) | Invokes the select method and gets the result. |
![]() | GetType() | |
![]() | GetUpdateMethodResult(IDictionary^, IDictionary^, IDictionary^) | Invokes the update method and gets the result. |
![]() | Insert(IDictionary^, DataSourceViewOperationCallback^) | Inserts a method and gets the result.(Overrides DataSourceView::Insert(IDictionary^, DataSourceViewOperationCallback^).) |
![]() | InvokeMethod(ModelDataSourceMethod^) | Invokes a data method. |
![]() | IsTrackingViewState() | Returns a value that indicates whether the control stores state in view state. |
![]() | LoadViewState(Object^) | Restores previously saved view state for the data source view. |
![]() | MemberwiseClone() | |
![]() | OnCallingDataMethods(CallingDataMethodsEventArgs^) | Raises the CallingDataMethods event. |
![]() | OnDataSourceViewChanged(EventArgs^) | Raises the DataSourceViewChanged event.(Inherited from DataSourceView.) |
![]() | ProcessSelectMethodResult(DataSourceSelectArguments^, DataSourceSelectResultProcessingOptions^, ModelDataMethodResult^) | Performs operations on the select method result like auto paging and sorting if applicable. |
![]() | RaiseUnsupportedCapabilityError(DataSourceCapabilities) | Called by the RaiseUnsupportedCapabilitiesError method to compare the capabilities requested for an ExecuteSelect operation against those that the view supports.(Inherited from DataSourceView.) |
![]() | SaveViewState() | Saves the changes to the view state for the ModelDataSourceView object since the time when the page was posted back to the server. |
![]() | Select(DataSourceSelectArguments^, DataSourceViewSelectCallback^) | Selects the method and gets the result.(Overrides DataSourceView::Select(DataSourceSelectArguments^, DataSourceViewSelectCallback^).) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | TrackViewState() | Causes the ModelDataSourceView object to track changes to its view state so that the changes can be stored in the ViewState object for the control and persisted across requests for the same page. |
![]() | Update(IDictionary^, IDictionary^, IDictionary^, DataSourceViewOperationCallback^) | Updates the specified methods using the values provided in the parameters.(Overrides DataSourceView::Update(IDictionary^, IDictionary^, IDictionary^, DataSourceViewOperationCallback^).) |
![]() | UpdateProperties(String^, String^, String^, String^, String^, String^) | Updates the specified properties using the values provided in the parameters. |
| Name | Description | |
|---|---|---|
![]() | CallingDataMethods | Occurs when data methods are being called. |
![]() | DataSourceViewChanged | Occurs when the data source view has changed.(Inherited from DataSourceView.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IStateManager::LoadViewState(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Loads the server control’s previously saved view state to the control. |
![]() ![]() | IStateManager::SaveViewState() | This API supports the product infrastructure and is not intended to be used directly from your code. Saves the changes to a server control’s view state to an Object. |
![]() ![]() | IStateManager::TrackViewState() | This API supports the product infrastructure and is not intended to be used directly from your code. Instructs the server control to track changes to its view state. |
![]() ![]() | IStateManager::IsTrackingViewState | Gets a value indicating whether a server control is tracking its view state changes. |
For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.
Available since 4.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.







