Visual Basic Reference

Visual Studio 6.0

DataSourceBehavior Property

See Also    Example    Applies To

Sets a value that determines if an object can act as a source of data for other objects. May only be set at design time.

Syntax

object.DataSourceBehavior [= number]

The DataSourceBehavior property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number An integer that specifies data source behavior, as described in Settings.

Settings

The settings for number are:

Constant Setting Description
vbNone 0 (Default) The object can't act as a data source.
vbDataSource 1 The object can act as a data source.

Remarks

Use the DataSourceBehavior property when you want an object to act as a source of data for other objects. When DataSourceBehavior is set to 1 (vbDataSource), the GetDataMember event is added to the objects procedures.

Show: