Skip to main content
.NET 8.0+

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

View.ModelChanging Event

Occurs before setting the View.Model property for a View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public event EventHandler ModelChanging

#Event Data

The ModelChanging event's data class is EventArgs.

#Remarks

This event occurs as a result of calling the current View’s View.SetModel method. This method is called to set or change a value for the View’s View.Model property. After this property’s value is changed, the View’s settings will be updated and its controls will be created (recreated). Handle this event to perform custom actions before changing the View.Model property’s value.

See Also