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
80
Inserting a WorksheetRow on HeaderRowExporting event
posted

I'm trying to "insert" another row in the HeaderRowExportingEvent in order to insert UltraGridGroup headers in the exported excel sheet.  UltraGridGroup headers are not exported by the excel exporter for some unknown reason so I'm trying to do this myself.

However, I'm not sure how to insert, or increase the offset. I cannot seem to find any methods to add a new row into the row collection or to increase the current rowsheet index to write one row after.

 How can I do this?

void _excelExporter_HeaderRowExporting(object sender, HeaderRowExportingEventArgs e)
{
  if (e.Band.Groups.Count > 0)
  {
  
    
// Insert a new row and write the group headers
  }
}