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
1635
Excel export band spacing
posted

I have parent-child grid rows that are exported to Excel with ultraGridExcelExporter.BandSpacing = 0. The bottom rows are band 0 as totals, so it looks like:

Band 0 rows

   Band 1 rows

     Band 2 rows

   Band 1 rows

     Band 2 rows

Band 0 rows

I would like to skip 1 line before the bottom Band 0 rows. Is that possible? Thanks.

Ron

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Ron,

    I think you should be able to achieve this by handling the RowExporting event and changing the e.CurrentRowIndex. You can set the property on the event args and just add 1 to move the row down one.

    The tricky part will be detecting when to do this. I guess you will need to get the grid row (it's on the event args, also) and find out if it has a previous row and if so, if that sibling has any child rows.

Children