wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-9b30d024.md
Occurs after a document is loaded into the Spreadsheet control.
Namespace : DevExpress.Xpf.Spreadsheet
Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll
NuGet Package : DevExpress.Wpf.Spreadsheet
public event EventHandler DocumentLoaded
Public Event DocumentLoaded As EventHandler
The DocumentLoaded event's data class is EventArgs.
The DocumentLoaded event fires after the SpreadsheetControl.LoadDocument method is executed when the document model is built and the loaded document is valid. Handle the DocumentLoaded event to ensure that the document is loaded completely, so you can safely modify it.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DocumentLoaded event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
</Grid.RowDefinitions>
<dxsps:SpreadsheetControl x:Name="spreadsheet" DocumentLoaded="spreadsheet_DocumentLoaded">
<dxsps:SpreadsheetControl.Options>
#line 17 "..\..\..\MainWindow.xaml"
this.spreadsheet.DocumentLoaded += new System.EventHandler(this.spreadsheet_DocumentLoaded);
#ExternalSource("..\..\..\MainWindow.xaml",17)
AddHandler Me.spreadsheet.DocumentLoaded, New System.EventHandler(AddressOf Me.spreadsheet_DocumentLoaded)
See Also