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
150
Excel export problem when using LayoutPosition.None on an UltraGridColumn
posted

Hello,

I am using Infragistics v7.1 (specifically Infragistics2.Win.UltraWinGrid.ExcelExport.v7.1). We have a small grid where we use the RowLayoutColumnInfo on several UltraGridColumns. On some of these columns we don't want any 'heading' to be displayed so we set the:

column.RowLayoutColumnInfo.LabelPosition = LabelPosition.None;

We export the grid using:

Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter
                exporter = new Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter();
exporter.Export(Grid, FileName);            

Whenever a user attempts to do the export with any of the 'no-heading' columns showing, this code ends up in an infinite loop. Using Reflector it appears that the GetCompressedGridBagLayoutManager is getting stuck in a while loop. If a column's LabelPosition is set to None, does it's RowHeight get set to 0 (causing the while loops to not increment their index)? Is there a better way to not display the Label that will allow Excel exporting to work or should the above situation not cause this problem? Thanks

 

Parents Reply Children
No Data