Both UltraGridDocumentExport and UltraGridExcelExporter returned the same result of only Primary band even though I put
e.Layout.ViewStyle = Infragistics.Win.UltraWinGrid.ViewStyle.MultiBand
into BeginExport event.
However, the second attempt of the same exporting gave me the result what I wanted. The Excel or PDF has the grid with all the band expanded.
So I tried in Exporter_InitializeRow event such as
If e.Row.Expanded = False Then
e.Row.Expanded = True
End If
But it did not help.
How can I get the grid exported all the band expanded at the 1st attempt?
If your grid has multiple bands, then the default behavior is to export all of the data as though every row in the grid was expanded. If that's not happening, then something else is wrong. Your code or something else in your application must be doing something to prevent the child rows from displaying. You should not have to do anything extra to get child rows to be exported.
Might try moving your Viewstyle setting outside before the export begins. I doubt yourgrid.rows.expandall would do it but you might try.
Nick