Back to Devexpress

PLinqServerModeSource.Source Property

corelibraries-devexpress-dot-data-dot-plinq-dot-plinqservermodesource.md

latest3.0 KB
Original Source

PLinqServerModeSource.Source Property

Gets or sets the enumerable data source.

Namespace : DevExpress.Data.PLinq

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[DefaultValue(null)]
public IEnumerable Source { get; set; }
vb
<DefaultValue(Nothing)>
Public Property Source As IEnumerable

Property Value

TypeDefaultDescription
IEnumerablenull

An object that implements the IEnumerable interface.

|

Remarks

Use this property to supply the required enumerable data source.

csharp
public MainWindow() {
    InitializeComponent();
    grid.DataSource = new PLinqServerModeSource() {    
        Source = myCustomerCollection
    };
}
vb
Public Sub New()
    InitializeComponent()
    grid.DataSource = New PLinqServerModeSource() With { _
    .Source = myCustomerCollection}
End Sub

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Source 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.

winforms-visualize-data-grid-rows-in-a-chart/CS/ControlRowSourceSample/MainForm.cs#L15

csharp
private void Form1_Load(object sender, EventArgs e) {
    pLinqServerModeSource.Source = SalesProductDataGenerator.GetData();

winforms-visualize-data-grid-rows-in-a-chart/VB/ControlRowSourceSample/MainForm.vb#L18

vb
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
            pLinqServerModeSource.Source = GetData()
#Region "#ControlRowSource"

See Also

PLinqServerModeSource Class

PLinqServerModeSource Members

DevExpress.Data.PLinq Namespace