corelibraries-devexpress-dot-data-dot-plinq-dot-plinqservermodesource.md
Gets or sets the enumerable data source.
Namespace : DevExpress.Data.PLinq
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
[DefaultValue(null)]
public IEnumerable Source { get; set; }
<DefaultValue(Nothing)>
Public Property Source As IEnumerable
| Type | Default | Description |
|---|---|---|
| IEnumerable | null |
An object that implements the IEnumerable interface.
|
Use this property to supply the required enumerable data source.
public MainWindow() {
InitializeComponent();
grid.DataSource = new PLinqServerModeSource() {
Source = myCustomerCollection
};
}
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
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
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
pLinqServerModeSource.Source = GetData()
#Region "#ControlRowSource"
See Also