Visual Basic Reference

Visual Studio 6.0

DataFormats Property

See Also    Example    Applies To

Sets or returns the StdDataFormat objects to which a bound object is attached. Read/write both at design time and run time.

Syntax

object.DataFormats

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

Complex bound objects can be bound to multiple StdDataFormat objects. The DataGrid, for example, has one binding per column. The DataFormats property allows access to multiple StdDataFormat objects bound to a single control.

The DataFormats property can also be set through a property page from the Properties window. If the setting in code differs from the the property page, the property page setting is used for the first record fetched, and from then on the values in code will be used.

Show: