QueryExtender::DataSource Property
.NET Framework (current version)
Gets the data source control (IDataSource object) to use for the query.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public: [BrowsableAttribute(false)] property IQueryableDataSource^ DataSource { virtual IQueryableDataSource^ get(); }
Property Value
Type: System.Web.UI.WebControls::IQueryableDataSource^The data source control to use for the query.
| Exception | Condition |
|---|---|
| InvalidOperationException | The DataSource property is null. |
The QueryExtender control supports the LinqDataSource and EntityDataSource controls.
.NET Framework
Available since 4.0
Available since 4.0
Show: