Back to Devexpress

CardViewColumn.ExportCellStyle Property

aspnet-devexpress-dot-web-dot-cardviewcolumn-36d03e37.md

latest1.6 KB
Original Source

CardViewColumn.ExportCellStyle Property

Gets the style settings defining the appearance of data cells when the card view is exported.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public CardViewExportAppearance ExportCellStyle { get; }
vb
Public ReadOnly Property ExportCellStyle As CardViewExportAppearance

Property Value

TypeDescription
CardViewExportAppearance

Style settings.

|

Remarks

Web Forms:

aspx
<dx:ASPxCardView ID="cardView" >
    <Columns>
        <dx:CardViewTextColumn FieldName="ProductName">
            <ExportCellStyle BackColor="#FFFF66">
            </ExportCellStyle>
        </dx:CardViewTextColumn>
    </Columns>
</dx:ASPxCardView>

MVC:

csharp
settings.Columns.Add(column => {  
    column.FieldName = "ProductName";
    column.ExportCellStyle.BackColor="#FFFF66";
});

See Also

Card View

CardViewColumn Class

CardViewColumn Members

DevExpress.Web Namespace