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

DataGridPrintStyle(DataGrid) Constructor

Initializes a new instance of the DataGridPrintStyle class with specified data grid.

Namespace: DevExpress.XtraPrintingLinks

Assembly: DevExpress.XtraPrinting.v20.2.dll

NuGet Package: DevExpress.Win.Printing

Declaration

public DataGridPrintStyle(
    DataGrid dataGrid
)

Parameters

Name Type Description
dataGrid DataGrid

A DataGrid object whose print style settings are to be copied.

Remarks

This method creates a new instance of the DataGridPrintStyle class, and then call the DataGridPrintStyle.CopyFrom method with the specified data grid as a parameter, so to initialize the newly created DataGridPrintStyle with the data gid’s settings.

See Also