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()
Public Sub SaveModel

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.

See Also