Skip to main content

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

GridControl.DefaultViewChanged Event

Fires when zooming a View in or out.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[DXCategory("Grid")]
public event EventHandler DefaultViewChanged

#Event Data

The DefaultViewChanged event's data class is EventArgs.

#Remarks

Detail clones can be maximized so that they are displayed as the main View. Once a clone has been maximized, it is assigned to the grid’s GridControl.DefaultView property. When maximizing another detail clone or restoring the previous View’s layout, the GridControl.DefaultView property value changes to represent the View currently displayed as the main View. Note that Views can be maximized by end-users or via code. Please refer to the Master-Detail Relationships topic for details.

Each time the GridControl.DefaultView property value changes, the DefaultViewChanged event is raised. Handle the event to provide a proper response to zooming a View in or out. For instance, you may need to update controls to help users in View navigation, displaying information on the current view, etc.

See Also