Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ViewItem.SaveModel() Method

In This Article

Saves the required information on the current state of the View Item to the Application Model.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public void SaveModel()

#Remarks

This method is called by the View.SaveModel method for each View Item, to save their current state before setting a new value for the View.Model property. After this property is changed, the View’s settings are updated and the controls (View Items and their controls) are created (recreated, if they were previously created). So, you do not have to call this method manually.

This method calls the SaveModelCore method, which does nothing. However, you can override this method in the ViewItem class’ descendants, so that the required settings of your View Item’s control are saved to the Application Model.

See Also