QueryExtender.DataSource Property

.NET Framework (current version)
 

Gets the data source control (IDataSource object) to use for the query.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

[BrowsableAttribute(false)]
public virtual IQueryableDataSource DataSource { 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
Return to top
Show: