protected void ASPxCardViewExporter1_RenderBrick(object sender, DevExpress.Web.ASPxCardViewExportRenderingEventArgs e) { var dataColumn = e.Column as CardViewColumn; if (dataColumn != null && dataColumn.FieldName == "ImagePath") { e.ImageValue = GetImageBinaryData(e.Value.ToString()); } }
protected void ASPxCardViewExporter1_RenderBrick(object sender, DevExpress.Web.ASPxCardViewExportRenderingEventArgs e) { CardViewColumn dataColumn = e.Column as CardViewColumn; if (dataColumn != null && dataColumn.FieldName == "ProductName") { e.BrickStyle.ForeColor = (decimal)e.GetValue("UnitPrice") > 10 ? Color.Green : Color.Red; e.BrickStyle.BackColor = Color.LightYellow; } }