Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to synchronize the GridControl and PrintPreviewWindow themes

$
0
0

This example demonstrates how you can set the PrintPreviewWindow theme to the currently selected GridControl theme. To do this, set the ThemeManager.ThemeName Attached Property in code:

[C#]
ThemeManager.SetThemeName(preview,ThemeManager.GetThemeName(gridControl1));

Note that in this scenario, the GridControl should be printed via the VisualDataNodeLink like in the How to specify certain page settings programmatically when printing a grid example so that you can access the PrintPreviewWindow (preview variable in this example).


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>