Skip to main content

ASPxCardViewExporter.CardWidth Property

Gets or sets a value specifying the width of a card within the exported document.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public int CardWidth { get; set; }

Property Value

Type Default Description
Int32 150

An integer value which specifies the card width, in pixels.


The CardWidth property is used to specify the width of a card within the exported document. If the CardWidth property isn’t defined, the default width of a card is specified by the value of the ASPxCardViewExporter.DefaultCardWidth field.


To see data export in action, refer to the following online demo: Exporting to PDF, XLS, XLSX, RTF.

public partial class Exporting_Exporting : System.Web.UI.Page {
    protected void btnPdfExport_Click(object sender, EventArgs e) {
    protected void btnXlsExport_Click(object sender, EventArgs e) {
        cardViewExport.WriteXlsToResponse(new XlsExportOptionsEx() { ExportType = ExportType.DataAware });
    protected void btnXlsxExport_Click(object sender, EventArgs e) {
        cardViewExport.WriteXlsxToResponse(new XlsxExportOptionsEx() { ExportType = ExportType.DataAware });
    protected void btnRtfExport_Click(object sender, EventArgs e) {
See Also