Back to Devexpress

GridOptionsPrint.AutoWidth Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsprint-7a953aaa.md

latest1.9 KB
Original Source

GridOptionsPrint.AutoWidth Property

Gets or sets whether widths of columns in the print/export output are automatically changed so that the View fits the page width.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AutoWidth { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AutoWidth As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to force the View to fit the page horizontally; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AutoWidth
GridView

.OptionsPrint .AutoWidth

|

Remarks

The image below shows the View’s print preview when the AutoWidth option is disabled and enabled respectively.

See Also

GridOptionsPrint Class

GridOptionsPrint Members

DevExpress.XtraGrid.Views.Grid Namespace