Version

InitializeRecord Event

Occurs when a record is initialized.
Syntax
'Declaration
 
Public Event InitializeRecord As EventHandler(Of InitializeRecordEventArgs)
public event EventHandler<InitializeRecordEventArgs> InitializeRecord
Event Data

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

PropertyDescription
CurrentColumnIndex (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Zero-based index of current exporting column in excel worksheet.
CurrentOutlineLevel (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Current outline level used for grouping.
CurrentRowIndex (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Zero-based index of current exporting row in excel worksheet.
CurrentWorksheet (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Current exporting worksheet.
Record Returns the record that is going to be exported.
SkipDescendants Specifies whether to skip the descendants of the current record.
SkipRecord Specifies whether to skip the current record.
SkipSiblings Specifies whether to skip sibling records of the current record.
TerminateExport Specifies whether to terminate the export process. The current record will not be processed.
Workbook (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Exporting workbook.
Remarks

The Record argument returns a reference to the record that is being exported.

The SkipRecord argument specifies whether to skip the current record. This argument doesn't affect exporting of descendant records.

The SkipDescendants argument specifies whether to skip the descendats of the current record.

The SkipSiblings argument specifies whether to skip sibling rows of the current record.

The TerminateExport argument specifies whether to terminate the export process. The current record will not be processed.

Additionaly this event has Workbook, CurrentWorksheet, CurrentRowIndex, CurrentColumnIndex, CurrentOutlineLevel arguments inherited from ExcelExportEventArgs.

This event is fired for every record that is being exported, and before RecordExporting and RecordExported are fired. Use this event to set record-specific properties and to control the exporting process.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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