VirtualSourceBase.Dispose() Method
In This Article
Disposes of the virtual source.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Remarks
To dispose of a virtual source:
- Handle the Page’s Unloaded event.
- Call the Dispose method.
public MainPage() {
// ...
Unloaded += (o, e) => {
source.Dispose();
};
}
If you do not dispose of a source, the thread in which the source responds to requests can slow down. You may not dispose of a source if the source’s lifetime coincides with the application’s lifetime.
Refer to the following help topic for more information: Fetch Data.
See Also