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
4695
ultraGridDocumentExporter cellexport
posted

Dear all,

When Exporting ultragrid to PDF using ultraGridDocumentExporter, how to change the columns or cells value? e.g. 0 becomes emply space in the cell of a specified column name.

Parents
No Data
Reply
  • 469350
    Offline posted

    Modifying the layout will not help in this case, since cells and rows are not in the layout.

    What you can do here is handle the CellExporting event of the UltraGridDocumentExporter. The event args give you the CellValue, which is the actual value of the cell being exported and also an ExportValue, which is the value (string, really) that will be exported.

    The ExportValue is settable. So you could, for example, check the CellValue and if it's 0, set the ExportValue to an empty string.

     

     

Children
No Data