Skip to main content

How to: Export Only Selected Cards

The following example exports only selected cards. To see this feature in action, refer to the following DevExpress ASP.NET Card View demo: Export Selected Records.

protected void cardView_RenderBrick(object sender, ASPxCardViewExportRenderingEventArgs e) {
    if(e.Column.FieldName == "PhotoUrl") {
        var path = MapPath(e.Value.ToString());
        if(File.Exists(path))
            e.ImageValue = File.ReadAllBytes(path);
    }
}