Export (0) Print
Expand All
Expand Minimize

DataSource Property (ActiveX Controls)

Visual Studio .NET 2003

Returns or sets a data source through which a data consumer is bound to a database.


object.DataSource [=datasource]

The DataSource property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
datasource An object reference that qualifies as a data source, including ADO Recordset objects, and classes or user controls defined as data sources (DataSourceBehavior property = vbDataSource).


Use the Set statement to set the DataSource property, as shown below:

Set DataGrid1.DataSource = ADODC1

See Also

Applies To: MSChart Control

© 2014 Microsoft