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

ASPxGridView.StylesExport Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public GridViewExportStyles StylesExport { get; }

Property Value

Type Description
GridViewExportStyles

A GridViewExportStyles object that contains style settings.

Remarks

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

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" ... >
    ...
    <Columns>
        <dx:GridViewDataColumn FieldName="ProductID">
            <ExportCellStyle BorderSize="0" />
        </dx:GridViewDataColumn>
    </Columns>    
</dx:ASPxGridView>
See Also