Skip to main content

ASPxGridView.StylesExport Property

Provides access to the style settings defining the appearance of the exported document.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public GridViewExportStyles StylesExport { get; }

Property Value

Type Description

A GridViewExportStyles object that contains style settings.


<dx:ASPxGridView ID="grid" runat="server" ... >
        <Header BackColor="Green" />

Note that export properties of grid columns have a greater priority than the control’s export properties. Use the ExportCellStyle property to customize cell export styles.

<dx:ASPxGridView ID="grid" runat="server" ... >
        <dx:GridViewDataColumn FieldName="ProductID">
            <ExportCellStyle BorderSize="0" />


The StylesExport property has no effect in DataAware Mode. Use either the ExportCellStyle property at the column level or the XlsExportOptionsEx.CustomizeCell / XlsxExportOptionsEx.CustomizeCell event instead.

See Also