# 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\<TGroupKey, TItem>**: 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

* [Grid Async Export](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/generic/async)

* [ExportFormat.ExcelML](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/how-to/style-exported-excelml-documents)

* [ExportFormat.Html](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/how-to/style-exported-html-documents)

* [ExportFormat.Xlsx](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/excel/export-xlsx)

* [ExportFormat.Pdf](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/pdf/export-pdf)

* [Online Demo - Exporting to various formats](https://demos.telerik.com/silverlight/#GridView/Exporting)

* [Online Demo - Exporting Row Details](https://demos.telerik.com/silverlight/#GridView/ExportingRowDetails)
