I have RetrieveDataEventArgs that updates the ultragrid below and overwrites the sum function with last value for column specified. When I export this to MS Excel it is reverting back to the Windows Application view sum function. How do I retain changes made in the class event when passing to MS Excel?
public UiEventResult AfterRetrieveData_111(object sender, RetrieveDataEventArgs e)
for (int i = 0; i < rowCount; i++) { foreach (UltraGridChildBand childBand in ultraGrid1.Rows[i].ChildBands) { foreach (UltraGridRow row in childBand.Rows) { row.Cells["summaryBandColumn"].Value = row.ChildBands.LastRow.Cells["summaryBandColumn"].Value; } }
}
Hello,
How you are exporting the grid , using ExcelExporter ? If so then you might need to use SummaryCellExporting or CellExporting event to manipulate the sum column.
Here is the list of all the public event:
https://www.infragistics.com/help/winforms/infragistics.win.ultrawingrid.excelexport~infragistics.win.ultrawingrid.excelexport.ultragridexcelexporter_events
Good Question. I'm not sure what the application is using to export to excel. It is built in function that I am not able to see. I right click and export to excel. I can reach out to the vendor if needed. I dont believe my version of infragistics has excelexporter.