Skip to main content

GridControl.DefaultViewChanged Event

Fires when zooming a View in or out.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v24.1.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