Back to Devexpress

PagedSource Class

wpf-devexpress-dot-xpf-dot-data-954c8317.md

latest4.8 KB
Original Source

PagedSource Class

The paged source. This source is obsolete. Use the PagedAsyncSource instead.

Namespace : DevExpress.Xpf.Data

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public sealed class PagedSource :
    PagedSourceBase
vb
Public NotInheritable Class PagedSource
    Inherits PagedSourceBase

Remarks

Refer to the Virtual Sources topic to learn more.

Important

The PagedSource is obsolete. Use the PagedAsyncSource instead.

Workflow

The PagedSource raises events consecutively in the UI Thread and processes data in a single separate Working Thread.

  1. The PagedSource creates a single separate Working Thread to process data.
  2. The PagedSource raises the PagedSource.CreateSource event. Handle this event to create an object used to request data (e.g., DbContext for EF, UnitOfWork for XPO).
  3. (Optional step) The PagedSource raises the PagedSource.GetTotalSummaries event. Handle this event and process summaries if you want to show them in the GridControl.
  4. The PagedSource raises raises the PagedSource.FetchPage event to get the first portion of data.
  5. When end users navigate to the next page, The PagedSource raises the PagedSource.FetchPage event to get the next portion of data.
  6. (Optional step) When end users apply a filter, The PagedSource raises the PagedSource.GetUniqueValues event to get unique values and show them in a drop-down filter.

Note

Only values of the Char, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double, Decimal, DateTime, String, Guid, Enum types are available in the UI Thread.

For other types, the UI Thread creates thread-safe proxy objects. You can allow access to these values in the following ways:

Tips

Inheritance

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement DXFrameworkContentElement VirtualSourceBase PagedSourceBase PagedSource

See Also

PagedSource Members

DevExpress.Xpf.Data Namespace