I recently upgraded. Now my export to excel worksheet application doesn't line up the header rows with the data rows. (How embarrassing for me that my user found the problem!) when using the following call:
Me.grdExcelExporterSalesMtg.Export(Me.UltraGrid1, ws1, 2, iLastCol + 2)
In between calls to the export, I change the data in the table and add worksheets as necessary. So is there a way to get the "start column" value that maybe I could access in the HeaderRoweExporting event? or an override that automatically keeps the header and data lined up?
This is an example of what is happening:
This is what I want to happen:
We love the grid and the excel export. By using these tools, we have taken a job that took about 5 days each quarter to less than 4 hours each quarter.
Thanks
Mike,
Download SR. My app now works as expected.
Thanks so much
I'm pretty sure there was a service release posted yesterday and that this issue is fixed in that service release.
Thanks for your reply. I checked the "known issues" and searched the forum. I wasn't sure whether this was a "bug" or there was a setting that I didn't know about. I'll keep an eye on the service releases.
Rose Anna
Hi,
This is a known bug. It may already be fixed in the latest service release, but if not, it will be in the next one.
Hello,
It seems to me that you are trying to rearrange the columns in the exported Excel document, is this your main goal ? If so you could handle ExportStarted event of UltraGridExcelExporter and to manage the layout of the exported grid.
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.UltraWinGrid.ExcelExport.v11.1~Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter~ExportStarted_EV.html
the argument of this event has a Layout (e.Layout) property which represent (it is a cloning of UltraGrid’s Layout) of Layout of the exported grid, and if you change anything on this layout, this changes will be applied only on the exported excel and not on the UltraGrid. So you could get this Layout object in ExportStarted event and to reorder the columns of the exported Excel file based on your need.
Please let me know if you have any further questions or if I am missing something.