Back to Devexpress

SpreadsheetControl.DocumentLoaded Event

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-9b30d024.md

latest3.4 KB
Original Source

SpreadsheetControl.DocumentLoaded Event

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

Declaration

csharp
public event EventHandler DocumentLoaded
vb
Public Event DocumentLoaded As EventHandler

Event Data

The DocumentLoaded event's data class is EventArgs.

Remarks

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.

wpf-spreadsheet-bind-grid-control-to-worksheet-data/CS/WpfSpreadsheet_DataBinding/MainWindow.xaml#L17

xml
</Grid.RowDefinitions>
<dxsps:SpreadsheetControl x:Name="spreadsheet" DocumentLoaded="spreadsheet_DocumentLoaded">
    <dxsps:SpreadsheetControl.Options>

wpf-spreadsheet-bind-grid-control-to-worksheet-data/CS/WpfSpreadsheet_DataBinding/obj/Debug/net8.0-windows/MainWindow.g.cs#L114

csharp
#line 17 "..\..\..\MainWindow.xaml"
this.spreadsheet.DocumentLoaded += new System.EventHandler(this.spreadsheet_DocumentLoaded);

wpf-spreadsheet-bind-grid-control-to-worksheet-data/VB/WpfSpreadsheet_DataBinding/obj/Debug/net8.0-windows/MainWindow.g.vb#L113

vb
#ExternalSource("..\..\..\MainWindow.xaml",17)
AddHandler Me.spreadsheet.DocumentLoaded, New System.EventHandler(AddressOf Me.spreadsheet_DocumentLoaded)

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace