'Declaration Public Event InitializeRow As EventHandler(Of WordWriterInitializeRowEventArgs)
public event EventHandler<WordWriterInitializeRowEventArgs> InitializeRow
The event handler receives an argument of type WordWriterInitializeRowEventArgs containing data related to this event. The following WordWriterInitializeRowEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Row | The grid row being initialized. |
SkipDescendants | Specifies whether to skip the descendats of the current row. |
SkipRow | Specifies whether to skip the current row. |
SkipSiblings | Specifies whether to skip sibling rows of the current row. |
TerminateExport | Specifies whether to terminate the export process. If the export is terminated, the current row will not be processed. |
The WordWriterInitializeRowEventArgs.Row argument returns the grid row which is being initialized. 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.
The WordWriterInitializeRowEventArgs.SkipRow argument specifies whether to skip the current row. This argument doesn't affect exporting of descendant rows.
The WordWriterInitializeRowEventArgs.SkipDescendants argument specifies whether to skip the descendats of the current row.
The WordWriterInitializeRowEventArgs.SkipSiblings argument specifies whether to skip sibling rows of the current row.
The WordWriterInitializeRowEventArgs.TerminateExport argument specifies whether to terminate the export process. Current row will not be processed.
This event is fired for every grid row which is being exported, and before RowExporting is fired. Use this event to set grid row specific properties and to control exporting process.
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