Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
PDF Exports
posted

We have most of our PDF exporting working, but for 2 issues.  Hoping someone can point us in the right direction...

 How do you: 1. Format the grid column headers so that they show as bold on the PDF export

2. Add a double line under the column headings (only show a bottom border)

 

We're overriding the UltraGridDocumentExporter class and for the bold issue, We’ve tried setting the property on the grid in initialize layout as well in the beginExport, headerCellExporting, rowExporting, and headerColExporting events. Nothing worked.

 

Thanks.

  • 19308
    posted

    Are you setting the properties on the grid, or on the Document elements that are being created?  You'll want to manipulate the Document elements directly. 

    For example, in the HeaderRowExporting event you'll want to use the eventargs.ColumnHeaderContainer which will give you access to an IGridCell.

    You'll want to set the Border property on the IGridCell to match what you're looking for.

    Hope this helps,

    -Tony