Skip to main content
A newer version of this page is available. .

View.SaveModel() Method

Writes information on a View to the Application Model.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public void SaveModel()

Remarks

Use this method to save the current settings of a View’s editor(s) to the Application Model node specified by the View’s View.Model property. These settings include those that correspond to properties of the Views | DetailView | Items and Views | DetailView | Layout or, Views | ListView, and Views | ListView | Columns nodes.

By default, this method is automatically called to save the current properties of a View’s editor(s) before assigning a new value to the View.Model property.

Handle the View.ModelSaving event to cancel saving information on a View’s editors to the Application Model.

Handle the View.CustomModelSaving event to perform a custom technique for saving the information.

Handle the View.ModelSaved event to save custom information on a View to the Application Model before it is updated.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SaveModel() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also