Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataGridPrintStyle(DataGrid) Constructor

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

Namespace: DevExpress.XtraPrintingLinks

Assembly: DevExpress.XtraPrinting.v24.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