DataMember Property

Returns or sets the data member.

Syntax

[form!]VSFlexGrid.DataMember[ = value As String ]

Remarks

This property is available only in the ADO (OLEDB) version of the VSFlexGrid control.

The DataMember property is used when the DataSource property is set to a source defined with the Visual Basic Data Environment. It contains the name of the data member to retrieve from the object referenced by the DataSource property.

The Data Environment maintains collections of data (data sources) containing named objects (data members) that will be represented as Recordset objects. The DataMember property determines which object specified by the DataSource property will be bound to the control.

Note that if you are binding the control to a data control, you don't need to set this property. Data controls contain only one data member which is used by default.

See also the DataSource and DataMode properties.

Data Type

String

See Also

VSFlexGrid Control