corelibraries-devexpress-dot-data-dot-linq-dot-linqservermodesource-7b63d948.md
Gets or sets the queryable data source.
Namespace : DevExpress.Data.Linq
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
[DefaultValue(null)]
public IQueryable QueryableSource { get; set; }
<DefaultValue(Nothing)>
Public Property QueryableSource As IQueryable
| Type | Default | Description |
|---|---|---|
| IQueryable | null |
An object that implements the IQueryable interface.
|
The QueryableSource property should be specified in code. An example is shown below:
public Form1() {
InitializeComponent();
linqServerModeSource1.QueryableSource = new DataClasses1DataContext().Customers;
}
The following code snippets (auto-collected from DevExpress Examples) contain references to the QueryableSource 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-grid-linq-to-sql-sever-mode/CS/LinqServerModeOnAdvWorks/Form1.cs#L23
linqServerModeSource1.QueryableSource = dc.PurchaseOrderHeaders;
gridControl1.DataSource = linqServerModeSource1;
winforms-pivotgrid-how-to-display-underlying-data/CS/DrillDownDataSourceExample/Form1.cs#L20
// This line of code is generated by Data Source Configuration Wizard
linqServerModeSource1.QueryableSource = new DrillDownDataSourceExample.DataClasses1DataContext().Invoices;
}
// This line of code is generated by Data Source Configuration Wizard
linqServerModeSource1.QueryableSource =
new XtraPivotGrid_CreateDrillDownDataSourceAsync.DataClasses1DataContext().Invoices;
winforms-pivotgrid-linq-to-sql-server-mode/CS/LinqToSqlServerModeExample/Form1.cs#L23
// Specify the queryable source that provides data items.
linqServerModeSource1.QueryableSource = dc.Invoices;
}
winforms-grid-implement-crud-operations-linqservermodesource/CS/LinqServerModeSource/Form1.cs#L33
InitializeComponent();
linqServerModeSource1.QueryableSource = nwdContext.Customers;
gridControl.DataSource = linqServerModeSource1;
winforms-grid-linq-to-sql-sever-mode/VB/LinqServerModeOnAdvWorks/Form1.vb#L19
dc.Log = Console.Out ' log queries
linqServerModeSource1.QueryableSource = dc.PurchaseOrderHeaders
gridControl1.DataSource = linqServerModeSource1
winforms-pivotgrid-how-to-display-underlying-data/VB/DrillDownDataSourceExample/Form1.vb#L19
' This line of code is generated by Data Source Configuration Wizard
linqServerModeSource1.QueryableSource = (New DrillDownDataSourceExample.DataClasses1DataContext()).Invoices
End Sub
' This line of code is generated by Data Source Configuration Wizard
linqServerModeSource1.QueryableSource = (New XtraPivotGrid_CreateDrillDownDataSourceAsync.DataClasses1DataContext()).Invoices
End Sub
winforms-pivotgrid-linq-to-sql-server-mode/VB/LinqToSqlServerModeExample/Form1.vb#L18
' Specify the queryable source that provides data items.
linqServerModeSource1.QueryableSource = dc.Invoices
End Sub
winforms-grid-implement-crud-operations-linqservermodesource/VB/LinqServerModeSource/Form1.vb#L32
InitializeComponent()
linqServerModeSource1.QueryableSource = nwdContext.Customers
gridControl.DataSource = linqServerModeSource1
See Also