Zooming in WPF GridControl

31 May 20211 minute to read

This feature enables the user to change the zoom level of the Grid control that brings either more or fewer cells into the view. By zooming in you can get a magnified view of the grid cells, and by zooming out you can bring more cells in to the view. This does not change the underlying size of Grid control, and the printout of the Grid control remains constant, regardless of the selected zoom scale.

Use Case Scenarios

When a larger number of cells are updated in the Grid, the user can view the grid cells clearly by increasing the zoom scale. By decreasing the zoom scale, the user can display more cells in the view.

Properties

Property Description Type Data Type
ZoomScale Used to change the zoom level of the Grid control Dependency Property Double

NOTE

Download demo application from GitHub

Change Zoom Scale of the Grid Control

You can change the zoom level of the Grid control by using the ZoomScale property defined in the Grid control.

The following code illustrates how to change the ZoomScale__of the Grid control:

gridControl.ZoomScale = 1.5;

Increased Zoom Scale in WPF GridControl

Decreased Zoom Scale in WPF GridControl