DataContext of the Export Elements

Each of the export events exposes a property which holds the DataContext for this particular ExportElement. Here is a breakdown of all the possible contexts:

  • GridViewRow: The context of the Row export element.
  • GridViewHeaderRow: The context of the HeaderRow export element.
  • GridViewDataColumn: The context of the HeaderCell, GroupFooterCell, FooterCell and Cell export elements.
  • GroupingImpl: The context of the GroupHeaderRow, GroupHeaderCell and GroupFooterRow export elements.
  • GridViewFooterRow: The context of the FooterRow export element.

You can use these contexts to conditionally style and format the exported elements.

See Also

In this article