PLinqInstantFeedbackDataSource.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
Property Value
Type | Description |
---|---|
IListSource | The source collection implementing IListSource. |
Remarks
To support Parallel LINQ, you should specify the source collection for a PLINQ data source and bind it to the grid. 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 three ways to specify the source collection:
- Use a ItemsSourceDataSourceBase.ItemsSource if a source collection implements System.Collections.Generic.IEnumerable<T>.
- Use a
PLinqInstantFeedbackDataSource.ListSource
if a source collection implements System.ComponentModel.IListSource. - You can dynamically specify the source collection within the PLinqInstantFeedbackDataSource.GetEnumerable event handler.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ListSource property.
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.