Initializing help system before first use

# Export a Datagrid as a CSV

A datagrid can be exported as a CSV if the `show-export` attribute is set to `true`.
When creating a VDL view including a `<vdl-datagrid>` element.

1. Add `show-export="true"` inside the `<vdl-datagrid>` element.
   When the datagrid is rendered, a button will be added allowing the user to click to export the datagrid as a CSV.
2. (Optional) Add `export-filename="<filename>"` to define the filename of the exported CSV.
   The default value is `data`.

    <vdl-datagrid show-export="true" export-filename="exported-data">
    	<vdl-datagrid-column></vdl-datagrid-column>
    </vdl-datagrid>

Parent Topic Working with Datagrid

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.