Flex – Export DataGrid data as CSV using DataGridDataExporter Class
by Carlos Pinho, August 3rd, 2007
  • Share
  • Share

flex3_fx_124x120.jpgHi,

Here is an example on how to export data from DataGrid. Abul made the DataGridDataExporter in order to make this possible.

Check the example.

Download the source.

Read his post.

Brgds,

CP

Copy and Paste the code below
Email and IM
Websites
Forums
Get This

10 Responses to “Flex – Export DataGrid data as CSV using DataGridDataExporter Class”

  1. MayorBrain Says:

    Quite intuitive, a clean code. keep it up.

  2. Brent Says:

    Is there a possibility the Flex application could export the CSV data into a file rather then displaying it in the text box?

  3. Abdul Qabiz Says:

    @Brent: I would soon add the code, that would export data as CSV file but that requires a server-side script.

    -abdul

  4. George Says:

    Hey Abdul,

    Great stuff have you managed to get it to export to a actual file?

    Also i was just wondering i’m doing mine all through flash not flex – so what would my call or code on my button be?

    Cheers,
    George

  5. Praji Says:

    Hai

    please help me to export datagrid data to an .xls file.

    Regards,
    KP

  6. ryan Says:

    does anyone know how to send DataGrid data from Flash to ANYTHING? Datagrid to Email… Datagrid to TextField? Anything? I need to somehow work with the data to send the finished “order” by form,email,or even to the database… ANYTHING?

    Ryan

  7. orscella Says:

    clear and superb post thanks for admin

  8. ajay Says:

    Super solution. I tried so many site (new to flex) but this is best solution …

  9. Wesley Says:

    Hi, i needed to use this with AdvancedDataGrid, so, i changed the references of DataGrid type to Object type, it worked.

    Now, i need write the csv string in a file to user download. You Know how do ?

    This is very good.
    Thanks

  10. usman Says:

    hi, i need to export advance dataGrid in pdf file. can you help me..?

Let leave a Comments for this post.