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
2320
Exclude a single column
posted

How do I skip a column in a grid that I am exporting?  I have a calculated column with links in it that I don't want being exporting.  All other visible columns should be exported.  I tried writing a CellExporting event that cancels the cell but I end up with an empty row.  I want to completely skip the first column.

Any help would be appreciated.

Thanks

 

Parents
No Data
Reply
  • 5520
    Verified Answer
    posted

    add the event of begin export which will give you the export layout to control without affecting the layout of the grid.

     void UltraWebGridExcelExporter1_BeginExport(object sender, Infragistics.WebUI.UltraWebGrid.ExcelExport.BeginExportEventArgs e)

        {

            e.Layout.Bands[0].Columns[0].Hidden = true;

        }

    hope this helps

Children