Skip to main content
A newer version of this page is available. .

PLinqServerModeDataSource.ListSource Property

Gets or sets the source collection. This is a dependency property.

Namespace: DevExpress.Xpf.Core.ServerMode

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

Declaration

public IListSource ListSource { get; set; }

Property Value

Type Description
IListSource

The source collection that implements IListSource.

Remarks

To support Parallel LINQ, you should specify the source collection for PLinqServerModeDataSource and bind the data source to the GridControl. The source collection must implement IEnumerable<T>. You should not provide the exact type of its elements, because the type is automatically evaluated at runtime.

There are two ways to specify the source collection:

  • Use ItemsSourceDataSourceBase.ItemsSource if a source collection implements System.Collections.Generic.IEnumerable<T>.
  • Use PLinqServerModeDataSource.ListSource if a source collection implements System.ComponentModel.IListSource.

To learn more, see Binding to In-Memory Data Using PLINQ.

See Also