I'm attempting to export a grid with cellborders set but I am not able to apply the formatting. All of my other formatting changes (font, background/foreground colors) work just fine. Is there another way I should be attempting to set the borders?
// grid = RadGridView
grid.ElementExportingToDocument += GridOnElementExportingToDocument;
....
private
void
GridOnElementExportingToDocument(
object
sender, GridViewElementExportingToDocumentEventArgs e)
{
GridViewDocumentVisualExportParameters visualParams = ((GridViewDocumentVisualExportParameters)e.VisualParameters);
var border =
new
CellBorder(CellBorderStyle.Thick,
new
ThemableColor(Colors.Black));
visualParams.Style =
new
CellSelectionStyle
{
FontSize = GatwickPrintSettings.BodyCellFontSize,
FontFamily =
new
ThemableFontFamily(GatwickPrintSettings.FontFamily),
CellBorders =
new
CellBorders(border),
// !! Has no effect
VerticalAlignment = RadVerticalAlignment.Center
};
....
}