Skip to main content

GridOptionsPrint.UsePrintStyles Property

Gets or sets whether print appearances are used when the grid control is printed/exported.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v23.2.dll

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

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool UsePrintStyles { get; set; }

Property Value

Type Default Description
Boolean true

true to use print appearances when the grid control is printed/exported; false to use View appearances.

Property Paths

You can access this nested property as listed below:

Object Type Path to UsePrintStyles
GridView
.OptionsPrint .UsePrintStyles

Remarks

If the UsePrintStyles option is set to true, the appearance settings used to paint the View elements when the grid control is printed are specified by the View’s GridView.AppearancePrint property. Otherwise, the appearance settings provided by the GridView.Appearance property are used.

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

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