Worked like a charm, thanks Mike!
Hi,
What you would have to do is use the InitializeRow event of the UltraGridDocumentExporter. The event args have properties to allow you to skip rows.
So what you would do is export the grid to a section and skip everything but the first row. Then export the grid to a second second and skip everything but the second row. The export the grid to a third section and skip everything but the third row, etc.
Hi Mike,
Changing the ColumnStyle during the export event did the trick, thanks.
Are you aware of any straightforward way of exporting only certain rows of a grid to a particular section? Ideally, I would like to create a new section/page for each one of my group by rows (and it's children). So if there are 8 group by rows I should get 8 pages, the only catch being that if one group by row has more children than will fit on one page, then that group by row should span two pages each with the same group by header.
Any thoughts?
Thanks in advance
Yes, if you don't mind not exporting the formated text, then that's probably a good workaround. How you do that depends on how you set up the formatted text columns in the first place, though. If you are using an Editor or EditorControl, then you need to set that property on the column to null. If you are using the Style property, then you can just set Style to default.
Either way, you should do this in the BeginExport event of the UltraGridDocumentExporter component and do it on the e.Layout that is passed into the event. That way it will affect the export, but not the on-screen grid and you don't have to worry about setting it back.
Thanks mike, in the meantime should I just change any columns that are FormattedText to something else before exporting? I belive the columns which are formatted text used to be drop down lists, the exporter didn't seem to have a problem with drop downs.