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
470
Can I include hidden grid columns in export?
posted

My SQLDatasource has extra columns that I would like to include in the Excel export but NOT show in the UltraWebGrid.

If I hide the columns, they do not export (by default anyway).

Is there a way to export ALL columns from the grid (even hidden ones)?

I could just dump data from the datasource (or the equivalent SQL command), but then I do not have it filtered/sorted the way the user has it in the grid.

Parents
No Data
Reply
  • 470
    Verified Answer
    posted

    Kudos to Infragistics support!

    The way to do this is to set columns as ServerOnly = True (and reset Hidden to the default = False). The columns will not render to the client but will be exported by Excel.

    Works great!

Children
No Data