Version

RowExporting Event

Occurs before a grid row is exported to a report.
Syntax
'Declaration
 
Public Event RowExporting As EventHandler(Of RowExportingEventArgs)
public event EventHandler<RowExportingEventArgs> RowExporting
Event Data

The event handler receives an argument of type RowExportingEventArgs containing data related to this event. The following RowExportingEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
GridRow The grid row being exported.
Remarks

The RowExportingEventArgs.GridRow argument returns the grid row which is being exported. Note that this row exists in the cloned export layout, so any changes made to this row will affect the export without affecting the on-screen grid. This row may not have the same state information (such as the Selected or Expanded state) as the actual grid row in the on-screen grid. To get the on-screen row associated with this row, use the Infragistics.Win.UltraWinGrid.UltraGrid.GetRowFromPrintRow(Infragistics.Win.UltraWinGrid.UltraGridRow) method.

This event is fired before each row is exported. This includes the row, it's cells, it's RowPreviewArea, and may also include column header if using RowLayout mode with column headers that are displayed with the cells. Use the Cancel argument to cancel the default exporting of this row.

This event fires only for normal data rows or GroupBy rows. It does not fire for header or summary rows. For header rows, use HeaderRowExporting. For summary rows, use SummaryRowExporting.

Using these event arguments, it is possible to override the exporting of a row and provide a custom export. Typically, this would be done by setting Cancel to True, adding a row to the reportTable, and then populating that row with the desired contents.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also