Skip to main content
A newer version of this page is available. .

GridControl.DefaultViewChanged Event

Fires when zooming a View in or out.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v17.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DefaultViewChanged event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also